Deletes the on-call entry for a given team.
HTTP
DELETE https://www.squidalerts.com/api/teams/{teamId}/oncall
URI Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| teamId | path | True | Guid | Identifier of the team |
Request Body
| Name | Required | Type | Description |
|---|---|---|---|
| onCallType | True | string | Allowed values: "Primary" or "Secondary" or "Tertiary" or "Manager" |
| startTime | True | DateTime | The initial date range ( in UTC ) to identify the on-call entry that is to be deleted Example: 2023-05-01T15:00:00Z |
| endTime | True | DateTime | The end date range ( in UTC ) to identify the on-call entry that is to be deleted Example: 2023-05-17T15:00:00Z |
| deleteSeries | True | boolean | Indicates 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 Code | Description |
|---|---|
| 204 | Success - Update is successful |
| 400 | Failure - One or more input parameters are missing or invalid |
| 401 | Failure - Token is missing/ invalid. User performing update have insufficient privileges |
| 404 | Failure - On-Call entry not found. Check input parameters |
| 500 | Failure - Something went wrong while performing update. Please try again in sometime and report issue if problem persists |