Upsert the company document control configuration
PUT/api/v2/companies/:companyId/document-control-configuration
Creates or partially updates the singleton configuration. Omitted or null scalar fields are left unchanged. Category lists omitted or null are left unchanged; send an empty array to clear a list. When a payment-control flag is true, the corresponding minimum charged percentage must be present in the final stored state. Category IDs must belong to companyId. Use If-Match with the ETag from GET for optimistic locking on updates.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 409
- 500
Configuration created or updated
Validation error ÔÇö the request body or a query parameter failed constraint validation. The response payload includes a errors array with field-level details.
Missing or invalid JWT (Bearer token).
Missing EDITAR_EMPRESAS permission
Company is outside the authenticated scope
Version conflict ÔÇö the resource was modified by another user since the version supplied in If-Match was issued.
Unexpected server error. Includes legacy WAR failures that are not classified as 502 / 503 / 504.