Schedules a resource to be on-call for the provided time frame.
HTTP
POST https://www.squidalerts.com/api/teams/{id}/oncall
URI Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| id | path | True | Guid | Identifier of the team |
Request Body
| Name | Required | Type | Description |
|---|---|---|---|
| onCallType | True | string | Allowed values: "Primary" or "Secondary" or "Manager" |
| accountId | True | Guid | The primary key of the user account that will be on-call |
| startTime | True | DateTime | When the resource will start their on-call rotation in UTC. Example: 2020-01-01T15:00:00Z |
| endTime | True | DateTime | When the resource will end their on-call rotation in UTC. Example: 2020-01-01T15:00:00Z |
Examples
JSON
{
"onCallType": "Primary",
"accountId": "2d402c9b-7c83-44aa-9eea-3af0c62e3658",
"startTime": "2020-05-21T15:00:00Z",
"endTime": "2020-05-21T15:00:00Z"
}