Deletes the on-call entry for a given team.


HTTP

DELETE https://www.squidalerts.com/api/teams/{teamId}/oncall


URI Parameters

NameInRequiredTypeDescription
teamId
pathTrueGuidIdentifier of the team


Request Body

NameRequiredTypeDescription
onCallTypeTruestringAllowed values: "Primary" or "Secondary" or "Tertiary" or "Manager"
startTimeTrueDateTimeThe initial date range ( in UTC ) to identify the on-call entry that is to be deleted Example: 2023-05-01T15:00:00Z
endTimeTrueDateTimeThe end date range ( in UTC ) to identify the on-call entry that is to be deleted Example: 2023-05-17T15:00:00Z
deleteSeries
True
booleanIndicates whether to delete entire series or just current entry


Examples

JSON

{
    "onCallType": "Primary",
    "startTime": "2023-05-01T15:00:00Z",
    "endTime": "2023-05-17T15:00:00Z"
}


Response codes

HTTP Status CodeDescription
204Success - Update is successful
400
Failure  - One or more input parameters are missing or invalid
401Failure - Token is missing/ invalid. User performing update have insufficient privileges
404Failure - On-Call entry not found. Check input parameters
500Failure - Something went wrong while performing update. Please try again in sometime and report issue if problem persists