Schedules a resource to be on-call for the provided time frame. 


HTTP

POST https://www.squidalerts.com/api/teams/{id}/oncall


URI Parameters

NameInRequiredTypeDescription
idpathTrueGuidIdentifier of the team


Request Body

NameRequiredTypeDescription
onCallTypeTruestringAllowed values: "Primary" or "Secondary"
accountId
TrueGuidThe primary key of the user account that will be on-call
startTimeTrueDateTimeWhen the resource will start their on-call rotation in UTC.
Example: 2020-01-01T15:00:00Z
endTimeTrueDateTimeWhen 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"
}