# 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": "67963b57-d67c-dfa7-b180-62ee9301d2f5",
"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": "00000000-7ea3-0000-000a-000000000000",
"type": "teams"
}
]
}
},
"type": "schedules"
}
}
EOF