Skip to content

Update on-call schedule

PATCH
/api/on-call-schedules/{id}
curl --request PATCH \
--url http://localhost:3000/api/on-call-schedules/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \
--header 'Content-Type: application/json' \
--cookie session=<session> \
--data '{ "name": "example", "personId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "startTime": "example", "endTime": "example", "rotation": "example", "description": "example" }'
id
required
string format: uuid
Media type application/json
object
name
string
personId
string format: uuid
startTime
string
endTime
string
rotation
string
description
string
Example generated
{
"name": "example",
"personId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"startTime": "example",
"endTime": "example",
"rotation": "example",
"description": "example"
}

OnCallSchedule updated

Media type application/json
object
data
object
id
required
string format: uuid
name
required
string
personId
string format: uuid
nullable
startTime
string
nullable
endTime
string
nullable
rotation
string
nullable
description
string
nullable
createdAt
required
string format: date-time
updatedAt
required
string format: date-time
Example generated
{
"data": {
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"name": "example",
"personId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"startTime": "example",
"endTime": "example",
"rotation": "example",
"description": "example",
"createdAt": "2026-04-15T12:00:00Z",
"updatedAt": "2026-04-15T12:00:00Z"
}
}

Validation error

Media type application/json
object
error
required
string
Example
{
"error": "Not found"
}

Not authenticated

Media type application/json
object
error
required
string
Example
{
"error": "Not found"
}

OnCallSchedule not found

Media type application/json
object
error
required
string
Example
{
"error": "Not found"
}