Publish multiple staging schemas.

POST /v1/schemas/published/{type}?schemas=name,name,...&compileOnly=true|false

This call publishes multiple staging schema. If name query parameter is given, then only the given schemas are published. The schemas must be given as a comma-separated list. If name query parameter is not given, then all staging schemas with the given type are published. The possible values for type is either json or xml. If compileOnly=true, then the schemas are validated but not published. If compileOnly=false or omitted, the schemas are validated and if there are no errors, they are published.

Response

200 Ok

The response contains the validation errors if there are any, or whether or not the schemas were 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