Set the order of the document types (tenant:settings:write)
PATCH /api/dms/v1/document-types
Module: DMS · operationId: reorderDocumentTypes · Tag: Document types · Auth: access token (Authorization: Bearer <accessToken>)
order must name every type of the tenant exactly once; otherwise the list changed meanwhile and nothing is written (409).
Request body
application/json (required)
order(array of string, required): Every code, first to last
Example:
{
"order": [
"incoming_document",
"incoming_supplement",
"delivery_note",
"order_confirmation",
"outgoing_invoice",
"contract",
"correspondence",
"mail",
"other"
]
}
Responses
- 204 Saved
- 400 Error (
application/json) - 409 Error (
application/json)
Example request
curl -X PATCH 'https://api.mbcom.cloud/api/dms/v1/document-types' \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
--data '{"order":["incoming_document","incoming_supplement","delivery_note","order_confirmation","outgoing_invoice","contract","correspondence","mail","other"]}'