Update an operation unit by external code

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.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

External code of the operation unit to update

Body Params
string
required
length ≤ 50
string
required
length ≤ 300
string | null
required

Use null or empty string to clear

string | null
required

CNPJ; use null or empty string to clear

parent
object | null
required

null or empty string clears the parent link. If you send an object, it must include a non-empty externalCode string.

Responses

400

Bad Request — validation errors (e.g. ValidationPipe), or invalid CNPJ / businessRegistrationNumber (Business registration number needs to be a valid cnpj number).

404

No operation unit was found for the given external code in this company

409

Another operation unit in the company already uses this external code, or An operation unit cannot be its own parent

422

No operation unit exists for the company with the parent external code provided

Language
Credentials
Bearer
JWT
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json