v1
latestOpenAPI 3.0.02026-07-24161168406.5 KBRole
Role
Update an existing role
Updates a role identified by externalCode in the URL.
Business rules:
- name, similarity, and externalCode are required and must not be empty.
- jobLevel and description must be sent on every request; use null or "" to clear optional values in EO.
- externalCode in the body must be unique within the company (cannot match another role's code).
Errors (HTTP):
- 404 when no role matches the URL externalCode for the company.
- 409 when the new externalCode is already used by another role.
- 400 for validation failures (invalid enums, missing keys, empty required strings).
put/os/v1/roles/external/{externalCode}
Path parameters
externalCodestring required
Example:ROLE-PUB-UPD-001
External code of the role to update
Request body
Example request
{
"name": "Analista de Negócios",
"similarity": "CONSULTANT",
"jobLevel": "ASSISTANT",
"externalCode": "RL-F98",
"description": "Software Architect"
}Response
The role has been successfully updated.