Skip to main content
POST
/
events
/
{id}
/
shifts
Create Shift
curl --request POST \
  --url https://api.roostedhr.com/api/1_12/events/{id}/shifts \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '
{
  "start_time": "2021-01-01 18:00:00",
  "skillset_id": 123,
  "quantity": "<string>",
  "custom_name": "<string>",
  "end_time": "2021-01-01 20:00:00",
  "alternate_quantity": "<string>",
  "comments": "<string>"
}
'
123

Skillset

Every shift requires a skillset. Provide skillset_id to assign an existing skillset to the shift.
Times use YYYY-MM-DD HH:MM:SS format (e.g., "2025-06-15 09:00:00"). The shift date portion should match the parent event’s date.

Authorizations

X-API-KEY
string
header
required

Path Parameters

id
string
required

Event ID

Body

application/json
start_time
string
required
Example:

"2021-01-01 18:00:00"

skillset_id
integer
required

Skillset ID for this shift.

quantity
string
required
Required string length: 1 - 255
custom_name
string
end_time
string
Example:

"2021-01-01 20:00:00"

alternate_quantity
string
Maximum string length: 255
comments
string
Maximum string length: 65535

Response

Created

Created shift ID