Gets the list of team members on-call for a specific team. If you don't provide a date, it will return the current on-call resource.
HTTP
GET https://www.squidalerts.com/api/teams/{id}/oncall/primary
GET https://www.squidalerts.com/api/teams/{id}/oncall/secondary
GET https://www.squidalerts.com/api/teams/{id}/oncall/manager
GET https://www.squidalerts.com/api/teams/{id}/oncall/primary?onCallDate=5/20/2020
GET https://www.squidalerts.com/api/teams/{id}/oncall/primary?startDate=2020-05-20&endDate=2020-06-20
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
id | path | True | Guid | Identifier of the team |
onCallDate | path | False | DateTime | The specific date you're wanting to identify the on-call resource (in UTC). Can be formatted as MM/DD/YYYY or YYYY-MM-DD. |
startDate | path | False | DateTime | Used with endDate. The initial date range you're wanting to identify the on-call resources (in UTC). Can be formatted as MM/DD/YYYY or YYYY-MM-DD. |
endDate | path | False | DateTime | Used with startDate. The final date range you're wanting to identify the on-call resources (in UTC). Can be formatted as MM/DD/YYYY or YYYY-MM-DD. |
Response
JSON
[{ "onCallType": "Primary", "accountId": "b3423bad-ab7d-4ef7-985d-4ce216f6fd5f", "accountName": "Mr. Squid", "startTime": "2020-01-01T15:00:00Z", "endTime": "2020-01-01T15:00:00Z" }]