Skip to main content
Replace a metadata definition

Authorizations

token
string
query
required

Standard authorization for most API calls. This token identifies the logged-in user and their permissions. It is obtained either as a temporary token after a successful login or as a long-term API key.

Query Parameters

force
boolean
default:false

Carries the replacement through even where the compatibility check objects, by dropping the document type and creating it afresh - which deletes every document of the type, along with their revisions and files. The rights and ACLs survive. Never set it without knowing the type is empty or the data is expendable.

Example:

false

Body

application/json
thumbnailHtml
string
required

HTML rendered into the preview image shown for this document type in the interface.

definition
object

The complete definition that will take the place of the current one; its name picks which definition is being replaced. Anything left out of it is gone from the definition afterwards.

Response

The metadata definition was replaced.

status
string

Outcome of the operation, reported as a status type constant.

Example:

"SUCCESS"