latestSwagger 2.02026-08-102194011.3 MB

602fc25ddd76

Schedules V2

CreateOverride Schedules V2

Create a new schedule override.

post/v2/schedule_overrides

Request body

end_atstring date-time required

End time of the override

layer_idstring required

The layer this override applies to

rotation_idstring required

The rotation this override applies to

schedule_idstring required

The schedule this override applies to

start_atstring date-time required

Start time of the override

Example request

{
  "end_at": "2021-08-17T14:00:00.000000Z",
  "layer_id": "01G0J1EXE7AXZ2C93K61WBPYNH",
  "rotation_id": "01G0J1EXE7AXZ2C93K61WBPYEH",
  "schedule_id": "01G0J1EXE7AXZ2C93K61WBPYEH",
  "start_at": "2021-08-17T13:00:00.000000Z",
  "user": {
    "email": "bob@example.com",
    "id": "01G0J1EXE7AXZ2C93K61WBPYEH",
    "slack_user_id": "USER123"
  }
}

Response

Created response.

Example response

{
  "override": {
    "created_at": "2021-08-17T13:28:57.801578Z",
    "end_at": "2021-08-17T13:28:57.801578Z",
    "id": "01G0J1EXE7AXZ2C93K61WBPYEH",
    "layer_id": "01G0J1EXE7AXZ2C93K61WBPYEH",
    "rotation_id": "01G0J1EXE7AXZ2C93K61WBPYEH",
    "schedule_id": "01G0J1EXE7AXZ2C93K61WBPYEH",
    "start_at": "2021-08-17T13:28:57.801578Z",
    "updated_at": "2021-08-17T13:28:57.801578Z",
    "user": {
      "email": "lisa@incident.io",
      "id": "01FCNDV6P870EA6S7TK1DSYDG0",
      "name": "Lisa Karlin Curtis",
      "role": "viewer",
      "slack_user_id": "U02AYNF2XJM"
    }
  }
}