Creates a new area. Areas can be organized hierarchically by setting a parent_id.
cURL
Create top-level area
curl --request POST \ --url https://api.roostedhr.com/api/1_12/areas \ --header 'Content-Type: application/json' \ --header 'X-API-KEY: <api-key>' \ --data ' { "name": "Northeast" } '
201
Created top-level area
{ "id": "a1B2c", "name": "Northeast", "parent_id": "", "nlevel": 0, "protected": false }
parent_id
Display name of the area.
50
"Northeast"
ID of the parent area. Omit or pass an empty string for a top-level area.
""
Created
Unique area identifier.
"a1B2c"
Parent area ID, or empty string if top-level.
Nesting depth (0 = top-level).
0
Whether the area is system-protected.
false