Updates the on-call entry for a given team.
HTTP
PUT 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" |
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. This value will also be used to search the existing on-call entry that falls on or after this range. Example: 2023-05-01T15:00:00Z |
endTime | True | DateTime | When the resource will end their on-call rotation in UTC. This value will also be used to search the existing on-call entry that falls on or before this range. Example: 2023-05-17T15:00:00Z |
Examples
JSON
{ "onCallType": "Primary", "accountId": "2d402c9b-7c83-44aa-9eea-3af0c62e3658", "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 |