Publish a staging schema.

PUT /v1/schemas/published/{type}/{schema}?compileOnly=true|false

This call publishes a staging schema. The possible values for type is either json or xml. If compileOnly=true, then the schema is validated but not published. If compileOnly=false or omitted, the schema is validated and if there are no errors, it is published.

Response

200 Ok

The response contains the validation errors if there are any, or whether or not the schema was published.

{
  "name": "FHIR4.0/Patient",
  "errors": [],
  "published": true
}
400 Bad Request

Malformed request, invalid value, etc. The return value is a JSON error object containing diagnostic information.

403 Forbidden

The authenticated key does not have the privileges for this operation. The return value is a JSON error object containing diagnostic information.

404 Not Found

Schema not found