cURL
Departments
Update Department
Updates a department record based on the provided ID
PATCH
cURL
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
ID of the department to update
Body
application/json
The department data to update
Response
Record updated successfully
Example:
true
Example:
"Record Updated successfully"
Example:
{
"id": "9f216061-6164-4985-9ce2-02ec4b0b5786",
"company": {
"id": "9e9a08cb-e3dc-4772-8c7e-cd3ec205d9c0",
"name": "Rayda"
},
"name": "Finance",
"member_count": 1,
"asset_count": 0,
"created_at": "2025-06-11T15:49:57.000000Z",
"updated_at": "2025-06-21T07:18:41.000000Z",
"head": { "name": " ", "id": null },
"members": [
{
"id": "9f216061-5970-439d-855d-cb5dc2f48f9c",
"first_name": "Sally",
"last_name": "Gorczany",
"email": "[email protected]",
"user_departments": [
{
"id": "9f216061-6340-415d-b0b1-87158322560f",
"company_id": "9e9a08cb-e3dc-4772-8c7e-cd3ec205d9c0",
"user_id": "9f216061-5970-439d-855d-cb5dc2f48f9c",
"department_id": "9f216061-6164-4985-9ce2-02ec4b0b5786",
"status": "Active",
"created_at": "2025-06-11T15:49:57.000000Z",
"updated_at": "2025-06-11T15:49:57.000000Z",
"deleted_at": null
}
]
}
]
}