Updates an operation unit identified by externalCode in the URL path.
Public contract: parent is nested as parent.externalCode (not a root externalCodeParent). Send parent: null or parent: "" to clear the parent; if parent is an object, externalCode must be a non-empty string (null, empty string, or omitting externalCode is invalid).
Errors: 404 not found for path code; 409 duplicate body externalCode or invalid parent reference (e.g. self-parent); 422 parent external code not found.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
400Bad Request — validation errors (e.g. ValidationPipe), or invalid CNPJ / businessRegistrationNumber (Business registration number needs to be a valid cnpj number).
404No operation unit was found for the given external code in this company
409Another operation unit in the company already uses this external code, or An operation unit cannot be its own parent
422No operation unit exists for the company with the parent external code provided
