Create a new schedule override.
curl --request POST \
--url https://api.shiftkeeper.io/schedules/{schedule_id}/overrides/ \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"start": "2024-12-01T00:00:00Z",
"end": "2024-12-08T00:00:00Z",
"user_references": [
{
"type": "email",
"value": "dena@example.org"
}
]
}'
{
"override": {
"id": "ovr_i9fo8GI1YBAQhtoArC3N1",
"start": "2024-12-01T00:00:00Z",
"end": "2024-12-08T00:00:00Z",
"users": [
{
"id": "usr_C0GwCFdk0I4pBMRny4qYV",
"name": "Dena",
"email": "dena@example.org",
"role": "standard",
"seat": "member",
"slack_id": "U082GMAFR1T"
}
]
}
}
Enter your API key which starts with 'keeper_'
The ID of the schedule.
Default Response
The response is of type object
.
curl --request POST \
--url https://api.shiftkeeper.io/schedules/{schedule_id}/overrides/ \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"start": "2024-12-01T00:00:00Z",
"end": "2024-12-08T00:00:00Z",
"user_references": [
{
"type": "email",
"value": "dena@example.org"
}
]
}'
{
"override": {
"id": "ovr_i9fo8GI1YBAQhtoArC3N1",
"start": "2024-12-01T00:00:00Z",
"end": "2024-12-08T00:00:00Z",
"users": [
{
"id": "usr_C0GwCFdk0I4pBMRny4qYV",
"name": "Dena",
"email": "dena@example.org",
"role": "standard",
"seat": "member",
"slack_id": "U082GMAFR1T"
}
]
}
}
Create a new schedule override.
curl --request POST \
--url https://api.shiftkeeper.io/schedules/{schedule_id}/overrides/ \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"start": "2024-12-01T00:00:00Z",
"end": "2024-12-08T00:00:00Z",
"user_references": [
{
"type": "email",
"value": "dena@example.org"
}
]
}'
{
"override": {
"id": "ovr_i9fo8GI1YBAQhtoArC3N1",
"start": "2024-12-01T00:00:00Z",
"end": "2024-12-08T00:00:00Z",
"users": [
{
"id": "usr_C0GwCFdk0I4pBMRny4qYV",
"name": "Dena",
"email": "dena@example.org",
"role": "standard",
"seat": "member",
"slack_id": "U082GMAFR1T"
}
]
}
}
Enter your API key which starts with 'keeper_'
The ID of the schedule.
Default Response
The response is of type object
.
curl --request POST \
--url https://api.shiftkeeper.io/schedules/{schedule_id}/overrides/ \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"start": "2024-12-01T00:00:00Z",
"end": "2024-12-08T00:00:00Z",
"user_references": [
{
"type": "email",
"value": "dena@example.org"
}
]
}'
{
"override": {
"id": "ovr_i9fo8GI1YBAQhtoArC3N1",
"start": "2024-12-01T00:00:00Z",
"end": "2024-12-08T00:00:00Z",
"users": [
{
"id": "usr_C0GwCFdk0I4pBMRny4qYV",
"name": "Dena",
"email": "dena@example.org",
"role": "standard",
"seat": "member",
"slack_id": "U082GMAFR1T"
}
]
}
}