v1
latestOpenAPI 3.0.02026-07-24161168406.5 KBArea
Area
Create a new area
Creates a new area in the company.
Business Rules:
- name: Required. Maximum 300 characters.
- externalCode: Required. Maximum 50 characters. Must be unique within the company.
- similarity: Required. Must be a valid area similarity value.
- description: Optional. Maximum 900 characters.
- organizationUnit: Optional. If provided, identify the department by uuid and/or externalCode (at least one). If both are sent, uuid is used for lookup.
- costCenter: Optional. If provided, identify the cost center by uuid and/or externalCode (at least one). If both are sent, uuid is used for lookup.
Validation:
- All required fields must be provided and not empty.
- The externalCode must not already exist for another area in the same company.
post/os/v1/areas
Request body
Example request
{
"name": "Produto Digital",
"similarity": "ACCOUNTING",
"externalCode": "A-F98",
"description": "Area Description"
}Response
The area has been successfully created.