Create Schedules

POST {{baseUrl}}/schedules

This endpoint is used to create a new schedule. Requires access_token as a Bearer {{token}} in the Authorization header with schedule-write scope.

Request Body

{"name"=>"Daily schedule", "colour"=>"#0f61dd", "description"=>"This schedule repeats daily", "owner_id"=>"<string>(owner_id represents team_id)"}

RESPONSES

status: Created

{&quot;data&quot;:{&quot;id&quot;:&quot;620b98c1097308a242bc8644&quot;,&quot;name&quot;:&quot;Weekly schedule&quot;,&quot;slug&quot;:&quot;weekly-schedule&quot;,&quot;organization_id&quot;:&quot;60cb200bc9de4a0008d2fc41&quot;,&quot;colour&quot;:&quot;#0f61dd&quot;,&quot;description&quot;:&quot;This schedule repeats weekly&quot;,&quot;owner&quot;:{&quot;id&quot;:&quot;620b71fef163b1e165f19f9c&quot;,&quot;type&quot;:&quot;team&quot;},&quot;access_control&quot;:[],&quot;organization&quot;:{&quot;id&quot;:&quot;60cb200bc9de4a0008d2fc41&quot;,&quot;name&quot;:&quot;Modhilal_Squadcast&quot;,&quot;slug&quot;:&quot;modhilalsquadcast&quot;}}}