v1.31
over 1 year ago by Esteban Deel
New People endpoints
Added
Retrieve Departments
Retrieve the list of departments in your organization.
Endpoint: GET /rest/v1/departments
Sample request
curl --request GET \
--url https://api.letsdeel.com/rest/v1/departments \
--header 'accept: application/json' \
--header 'authorization: Bearer token'
Update Department
Update department for a specific worker using the worker's ID.
Endpoint: PUT /rest/v1/people/worker_id/department
Sample request
curl --request PUT \
--url https://api.letsdeel.com/rest/v1/people/worker_id/department \
--header 'accept: application/json' \
--header 'authorization: Bearer token' \
--header 'content-type: application/json' \
--data '
{
"data": {
"department_id": "123e4567-e89b-12d3-a456-426614174000"
}
}
'
Retrieve Working Locations
Retrieve the list of working locations in your organization.
Endpoint: GET /rest/v1/working-locations
Sample request
curl --request GET \
--url https://api.letsdeel.com/rest/v1/working-locations \
--header 'accept: application/json' \
--header 'authorization: Bearer token'
Update Working Location
Update working location for a specific worker using the worker's ID.
Endpoint: PUT /rest/v1/people/worker_id/working-location
Sample request
curl --request PUT \
--url https://api.letsdeel.com/rest/v1/people/worker_id/working-location \
--header 'accept: application/json' \
--header 'authorization: Bearer token' \
--header 'content-type: application/json' \
--data '
{
"data": {
"working_location_id": "123e4567-e89b-12d3-a456-426614174000"
}
}
'