Team - On Call - Get

Created by Vamshi Reddy, Modified on Mon, 1 Aug, 2022 at 9:34 AM by Vamshi Reddy

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.troposalerts.com/api/teams/{id}/oncall/primary

GET https://www.troposalerts.com/api/teams/{id}/oncall/secondary

GET https://www.troposalerts.com/api/teams/{id}/oncall/manager

GET https://www.troposalerts.com/api/teams/{id}/oncall/primary?onCallDate=5/20/2020

GET https://www.troposalerts.com/api/teams/{id}/oncall/primary?startDate=2020-05-20&endDate=2020-06-20


URI Parameters

NameInRequiredTypeDescription
idpathTrueGuidIdentifier of the team
onCallDatepathFalseDateTimeThe specific date you're wanting to identify the on-call resource (in UTC). Can be formatted as MM/DD/YYYY or YYYY-MM-DD.
startDatepathFalseDateTimeUsed 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.
endDatepathFalseDateTimeUsed 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": "2022-01-01T15:00:00Z",
    "endTime": "2022-01-01T15:00:00Z"
}]

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article