Document type
Update document type
Update an existing document type with new information. For example, use this endpoint to add validations:
curl --location --request PUT 'https://api.sensible.so/v0/document_types/<TYPE_ID>' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--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"]}]}} '
PUT
/
document_types
/
{type-id}
Authorizations
Authorization
string
headerrequiredSensible 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
requiredThe unique document type identifier in v4 UUID format. Find IDs using the /document_types
endpoint.
Body
application/json
name
string
User-friendly name
Required string length:
3 - 128
schema
object
Response
200 - application/json
name
string
requiredUnique user-friendly name for a document type
id
string
requiredUnique identifier
created
string
requiredISO 8601 date-time.
schema
object
required