Copier
# Path parameters export schedule_id = "3653d3c6-0c75-11ea-ad28-fb5701eabc7d" # Curl command curl -X PUT "https://api.ap1.datadoghq.com "https://api.datadoghq.eu "https://api.ddog-gov.com "https://api.datadoghq.com "https://api.us3.datadoghq.com "https://api.us5.datadoghq.com /api/v2/on-call/schedules/${schedule_id} " \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "DD-API-KEY: ${DD_API_KEY} " \
-H "DD-APPLICATION-KEY: ${DD_APP_KEY} " \
-d @- << EOF
{
"data": {
"id": "3653d3c6-0c75-11ea-ad28-fb5701eabc7d",
"attributes": {
"layers": [
{
"id": "00000000-0000-0000-0000-000000000001",
"effective_date": "2021-11-01T11:11:11+00:00",
"end_date": "2021-11-21T11:11:11+00:00",
"interval": {
"seconds": 300
},
"members": [
{
"user": {
"id": "string"
}
}
],
"name": "Layer 1",
"restrictions": [
{
"end_day": "friday",
"end_time": "17:00:00",
"start_day": "monday",
"start_time": "09:00:00"
}
],
"rotation_start": "2021-11-06T11:11:11+00:00"
}
],
"name": "Example-On-Call",
"tags": [
"tag1",
"tag2",
"tag3"
],
"time_zone": "America/New_York"
},
"relationships": {
"teams": {
"data": [
{
"id": "aeadc05e-98a8-11ec-ac2c-da7ad0900001",
"type": "teams"
}
]
}
},
"type": "schedules"
}
}
EOF