PUT
/
document_types
/
{type-id}
curl --location --request PUT 'https://api.sensible.so/v0/document_types/<TYPE_ID>' \
--header 'Authorization: Bearer <YOUR_API_TOKEN>' \
--header 'Content-Type: application/json' \
--data-raw '{"schema":{"validations":[{"description":"example validation to test broker email format","condition":{"match":[{"var":"broker\\.email.value"},"^\\S+\\@\\S+$"]},"severity":"warning","fields":["test"]}]}} '

Authorizations

Authorization
string
headerrequired

Sensible uses API keys to authenticate requests. Keep your API keys secure and do not share them publicly accessible areas such as GitHub, client-side code, etc. Authentication to the API is performed via Bearer Authentication. Provide your API key as the bearer auth value.

Path Parameters

type-id
string
required

The unique document type identifier in v4 UUID format. Find IDs using the /document_types endpoint.

Body

application/json
name
string

User-friendly name

schema
object

Response

200 - application/json
name
string
required

Unique user-friendly name for a document type

id
string
required

Unique identifier

created
string
required

ISO 8601 date-time.

schema
object
required