API Docs
Positions

Positions

Positions in Zoho Shifts can be used to define job role or title.

Get all positions

List all positions in an organization.

Required OAuth Scope: ZohoShifts.settings.READ

Request Example

Click to copy
$ curl https://shifts.zoho.com/api/v1/{org_id}/settings/positions -H "Authorization: Zoho-oauthtoken 1000.41d9f2cfbd1b7a8f9e314b7aff7bc2d1.8fcc9810810a216793f385b9dd6e125f"

Response Example

{ "positions": [ { "id": "714000000002029", "name": "Barista", "color": "blue", "schedules": [ { "id": "714000000002029", "name": "Midtown" } ] } ] }

Create a position

Required OAuth Scope: ZohoShifts.settings.CREATE

Arguments

name
string
(Required)
color
string
Default value: blue
Allowed values: red, pink, magenta, purple, deep-purple, indigo, light-violet, blue, light-blue, cyan, muted-green, teal, green, light-green, lime, yellow, amber, orange, deep-orange, brown, grey, blue-grey
schedules
array
Show Sub-Attributes arrow
id
string

Request Example

Click to copy
$ curl https://shifts.zoho.com/api/v1/{org_id}/settings/positions -X POST -H "Content-Type: application/json;charset=UTF-8" -H "Authorization: Zoho-oauthtoken 1000.41d9f2cfbd1b7a8f9e314b7aff7bc2d1.8fcc9810810a216793f385b9dd6e125f" -d '{"field":"value","field":"value"}'

Body Parameters

Click to copy
{ "name": "Barista", "color": "blue", "schedules": [ { "id": "714000000002029" } ] }

Response Example

{ "id": "714000000002029", "name": "Barista", "color": "blue", "schedules": [ { "id": "714000000002029", "name": "Midtown" } ] }

Update a position

Required OAuth Scope: ZohoShifts.settings.UPDATE

Arguments

name
string
color
string
Default value: blue
Allowed values: red, pink, magenta, purple, deep-purple, indigo, light-violet, blue, light-blue, cyan, muted-green, teal, green, light-green, lime, yellow, amber, orange, deep-orange, brown, grey, blue-grey
schedules
array
Show Sub-Attributes arrow
id
string

Request Example

Click to copy
$ curl https://shifts.zoho.com/api/v1/{org_id}/settings/positions/{position_id} -X PUT -H "Content-Type: application/json;charset=UTF-8" -H "Authorization: Zoho-oauthtoken 1000.41d9f2cfbd1b7a8f9e314b7aff7bc2d1.8fcc9810810a216793f385b9dd6e125f" -d '{"field":"value","field":"value"}'

Body Parameters

Click to copy
{ "name": "Barista", "color": "blue", "schedules": [ { "id": "714000000002029" } ] }

Response Example

{ "id": "714000000002029", "name": "Barista", "color": "blue", "schedules": [ { "id": "714000000002029", "name": "Midtown" } ] }

Delete a position

Required OAuth Scope: ZohoShifts.settings.DELETE

Request Example

Click to copy
$ curl https://shifts.zoho.com/api/v1/{org_id}/settings/positions/{position_id} -X DELETE -H "Authorization: Zoho-oauthtoken 1000.41d9f2cfbd1b7a8f9e314b7aff7bc2d1.8fcc9810810a216793f385b9dd6e125f"

Response Example

{ "message": "Position deleted" }
© 2024, Zoho Corporation Pvt. Ltd. All Rights Reserved.