Create a new schema or update an existing one.

PUT /v1/schemas/staging/{type}/{schema}
Content-Type: application/schema+json | text/xml

This call creates a new staging schema with the given type and name. The possible values for type are json or xml. The schema is the schema name. The request body must contain the schema contents.

If a staging schema with the same name and type exists, this call overwrites that schema. If a published schema exists but not a staging one, this call will create a new staging schema without modifying the published version.

Response

200 Ok
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.