Schedules a resource to be on-call for the provided time frame.
HTTP
POST https://www.troposalerts.com/api/teams/{id}/oncall
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
id | path | True | Guid | Identifier of the team |
Request Body
Name | Required | Type | Description |
---|---|---|---|
onCallType | True | string | Allowed values: "Primary" or "Secondary" 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. Example: 2020-01-01T15:00:00Z |
endTime | True | DateTime | When 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
Feedback sent
We appreciate your effort and will try to fix the article