Updates an area’s name or position in the hierarchy.
cURL
Rename an area
curl --request PATCH \ --url https://api.roostedhr.com/api/1_12/areas/{id} \ --header 'Content-Type: application/json' \ --header 'X-API-KEY: <api-key>' \ --data ' { "name": "Northeast Region" } '
200
Updated area
{ "id": "a1B2c", "name": "Northeast Region", "parent_id": "", "nlevel": 0, "protected": false }
ARA-500
name
parent_id
id
Unique area identifier.
"a1B2c"
New display name for the area.
50
"Northeast Region"
New parent area ID, or empty string to make top-level.
""
OK
Display name of the area.
"Northeast"
Parent area ID, or empty string if top-level.
Nesting depth (0 = top-level).
0
Whether the area is system-protected.
false