Create a shift plan working area.

Creates a shift plan working area in the organization, with the same rules as Settings > Shift Plan > Working Areas.
The name is required. Surrounding spaces are removed, and it must have between 3 and 51 characters and be unique in the organization, ignoring upper and lower case.
The locationId is optional and must be the id of an office of the organization that is active for Shift Plan (see GET /offices). Omit it or send null for a working area not tied to a location.
Only name and locationId are accepted in the body.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required
length between 3 and 51

The name of the working area, between 3 and 51 characters once surrounding spaces are removed. Unique in the organization, ignoring upper and lower case. Required field.

string | null

The id of the office (location) the working area belongs to. The office must be active for Shift Plan.

Headers
string
required

A valid bearer token.

Responses

401

UNAUTHORIZED. The Authorization header is incorrect, not provided or the token expired.

403

FORBIDDEN. The Shift plan feature is not active for the organization.

Language
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json