Update a legal entity
Header Parameters
Path Parameters
Company ID. Must be one of the IDs returned by GET /api/v2/companies/.
Row id. A row belonging to another company is 404 on every verb, never 403.
Body Parameters
Department ids. Must belong to this company.
Show child attributes
User ids. Each must be an active member of this company.
Show child attributes
User ids. Each must be an active member of this company.
Show child attributes
Category ids. Must belong to this company.
Show child attributes
Must belong to this company.
Delivery-address links. null is accepted and means "no links".
Show child attributes
Invoice-address links. null is accepted and means "no links".
Show child attributes
Payment-method links.
Show child attributes
Response
Updated. The body is the read shape.
Response Attributes
Short code for the entity. Sortable via ?ordering=identifier.
Accounting area. The d.velop integration reads this as its company_id, so changing it affects that export.
Where invoices for this entity are sent.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Default payment method.
Linked delivery addresses, nested in full.
Show child attributes
Linked invoice addresses, nested in full.
Show child attributes
Linked payment methods, nested in full.
Show child attributes
When the row was created.
When the row itself last changed.
null on a live row; the timestamp of the soft delete otherwise. Read-only everywhere.
Validation failed.
Response Attributes
validationErrorclientErrorserverError Show child attributes
Missing, invalid, or expired API key, or a session credential was used instead of an API key.
Response Attributes
validationErrorclientErrorserverError Show child attributes
Authenticated but not entitled: the key's user is not an active member of this company, the External API feature (or the resource's own feature) is not enabled for it, the key lacks the scope this verb needs, or a browser session was used.
Response Attributes
validationErrorclientErrorserverError Show child attributes
No such row for this company, including a row that belongs to another company, and a soft-deleted row you tried to write to. The API does not confirm whether the id exists elsewhere.
Response Attributes
validationErrorclientErrorserverError Show child attributes
Rate limit exceeded (60 requests per minute per API key). Retry after the number of seconds given in the message.
Response Attributes
validationErrorclientErrorserverError