On-Call
Create On-Call schedule overrides
Create one or more overrides for the specified On-Call schedule.
post/api/v2/on-call/schedules/{schedule_id}/overrides
Request
- Base URLhttps://api.datadoghq.com
- Auth
- API key in header DD-API-KEY and API key in header DD-APPLICATION-KEY
- or OAuth 2Authorization code/oauth2/v1/authorizeToken URL/oauth2/v1/token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
schedule_idstring required
Example:3653d3c6-0c75-11ea-ad28-fb5701eabc7d
The ID of the schedule.
Query parameters
includestring
Comma-separated list of included relationships to be returned. Allowed values: user, overridden_user, user.color.
Request body
Example request
{
"data": [
{
"attributes": {
"end": "2024-01-08T02:53:01.000000000Z",
"start": "2024-01-07T02:53:01.000000000Z"
},
"relationships": {
"overridden_user": {
"data": {
"id": "00000000-0000-0000-0000-000000000000",
"type": "users"
}
},
"user": {
"data": {
"id": "00000000-0000-0000-0000-000000000000",
"type": "users"
}
}
},
"type": "overrides"
}
]
}Response
Created
Example response
{
"data": [
{
"attributes": {
"end": "2024-01-08T02:53:01.000000000Z",
"inactive": false,
"start": "2024-01-07T02:53:01.000000000Z"
},
"id": "00000000-0000-0000-0000-000000000000",
"relationships": {
"schedule": {
"data": {
"id": "3653d3c6-0c75-11ea-ad28-fb5701eabc7d",
"type": "schedules"
}
},
"user": {
"data": {
"id": "00000000-aba1-0000-0000-000000000000",
"type": "users"
}
}
},
"type": "overrides"
}
],
"included": [
{
"attributes": {
"email": "jane.doe@example.com",
"name": "Jane Doe",
"status": ""
},
"id": "00000000-aba1-0000-0000-000000000000",
"type": "users"
}
]
}Changes
Changes to this operation have not been checked yet.