Skip to main content
PATCH
/
events
/
{id}
/
shifts
/
{shift_id}
Edit Shift
curl --request PATCH \
  --url https://api.roostedhr.com/api/1_12/events/{id}/shifts/{shift_id} \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '
{
  "custom_name": "<string>",
  "start_time": "2021-01-01 18:00:00",
  "end_time": "2021-01-01 20:00:00",
  "skillset_id": 123,
  "quantity": "<string>",
  "alternate_quantity": "<string>",
  "comments": "<string>"
}
'
{ "id": "<string>", "event_id": "<string>", "custom_name": "<string>", "start_time": "<string>", "end_time": "<string>", "skillsets": [ { "id": 123, "name": "<string>" } ], "quantity": 123, "filled": 123, "alternate_quantity": 123, "alternate_filled": 123, "comments": "<string>" }
All fields are optional on edit. Only the fields you include will be updated.

Authorizations

X-API-KEY
string
header
required

Path Parameters

id
string
required

Event ID

shift_id
string
required

Shift ID

Body

application/json
custom_name
string
start_time
string
Example:

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

end_time
string
Example:

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

skillset_id
integer

Skillset ID for this shift.

quantity
string
Required string length: 1 - 255
alternate_quantity
string
Maximum string length: 255
comments
string
Maximum string length: 65535

Response

OK

id
string
event_id
string
custom_name
string
start_time
string
end_time
string
skillsets
object[]
quantity
integer
filled
integer
alternate_quantity
integer
alternate_filled
integer
comments
string