Team - On Call - Create

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

Schedules a resource to be on-call for the provided time frame. 


HTTP

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


URI Parameters

NameInRequiredTypeDescription
idpathTrueGuidIdentifier of the team


Request Body

NameRequiredTypeDescription
onCallTypeTruestringAllowed values: "Primary" or "Secondary" or "Manager"
accountId
TrueGuidThe primary key of the user account that will be on-call
startTimeTrueDateTimeWhen the resource will start their on-call rotation in UTC.
Example: 2020-01-01T15:00:00Z
endTimeTrueDateTimeWhen the resource will end their on-call rotation in UTC.
Example: 2020-01-01T15:00:00Z


Examples

JSON

{
    "onCallType": "Primary",
"accountId": "2d402c9b-7c83-44aa-9eea-3af0c62e3658",
"startTime": "2022-05-21T15:00:00Z",
    "endTime": "2022-05-21T15: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