On-Call Policy Schedule
Update On-Call Policy Schedule
Endpoint to update an existing On-Call Policy Schedule
put/on-call-duty-policy-schedule/{id}
Request
- Base URLhttps://oneuptime.com/api
- AuthAPI key in header APIKey
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idstring uuid required
ID of the On-Call Policy Schedule to update
Request body
Example request
{
"data": {
"name": "Example Text"
}
}Response
Updated successfully
Example response
{
"data": {
"_id": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa",
"createdAt": {
"_type": "DateTime",
"value": "2023-10-01T12:00:00Z"
},
"updatedAt": {
"_type": "DateTime",
"value": "2023-10-01T12:00:00Z"
},
"deletedAt": {
"_type": "DateTime",
"value": "2023-10-01T12:00:00Z"
},
"project": {
"_id": "bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb"
},
"projectId": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa",
"name": "Example Text",
"labels": [
{
"_id": "cccccccc-cccc-cccc-cccc-cccccccccccc"
},
{
"_id": "dddddddd-dddd-dddd-dddd-dddddddddddd"
}
],
"description": "This is an example of longer text content that provides detailed information.",
"timezone": "Example Text",
"slug": "example-slug",
"createdByUser": {
"_id": "bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb"
},
"createdByUserId": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa",
"currentUserOnRoster": {
"_id": "bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb"
},
"currentUserIdOnRoster": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa",
"nextUserOnRoster": {
"_id": "bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb"
},
"nextUserIdOnRoster": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa",
"rosterHandoffAt": {
"_type": "DateTime",
"value": "2023-10-01T12:00:00Z"
},
"rosterNextHandoffAt": {
"_type": "DateTime",
"value": "2023-10-01T12:00:00Z"
},
"rosterNextStartAt": {
"_type": "DateTime",
"value": "2023-10-01T12:00:00Z"
},
"rosterStartAt": {
"_type": "DateTime",
"value": "2023-10-01T12:00:00Z"
},
"shiftConfigVersion": 42
}
}Changes
No recorded changes to this operation across all 1 revision of this API.