On-Call Duty Execution Log
Create On-Call Duty Execution Log
Endpoint to create a new On-Call Duty Execution Log
post/on-call-duty-policy-execution-log
Request
- Base URLhttps://oneuptime.com/api
- AuthAPI key in header APIKey
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"data": {
"projectId": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa",
"status": "Example Text",
"statusMessage": "This is an example of longer text content that provides detailed information.",
"userNotificationEventType": "Example Text"
}
}Response
Created successfully
Example response
{
"data": {
"_id": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa",
"createdAt": {
"_type": "DateTime",
"value": "2023-10-01T12:00:00Z"
},
"updatedAt": {
"_type": "DateTime",
"value": "2023-10-01T12:00:00Z"
},
"deletedAt": {
"_type": "DateTime",
"value": "2023-10-01T12:00:00Z"
},
"project": {
"_id": "bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb"
},
"projectId": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa",
"onCallDutyPolicy": {
"_id": "bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb"
},
"onCallDutyPolicyId": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa",
"triggeredByIncident": {
"_id": "bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb"
},
"triggeredByIncidentId": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa",
"triggeredByAlert": {
"_id": "bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb"
},
"triggeredByAlertId": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa",
"triggeredByAlertEpisode": {
"_id": "bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb"
},
"triggeredByAlertEpisodeId": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa",
"triggeredByIncidentEpisode": {
"_id": "bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb"
},
"triggeredByIncidentEpisodeId": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa",
"status": "Example Text",
"statusMessage": "This is an example of longer text content that provides detailed information.",
"userNotificationEventType": "Example Text",
"createdByUser": {
"_id": "bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb"
},
"createdByUserId": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa",
"deletedByUserId": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa",
"acknowledgedByUser": {
"_id": "bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb"
},
"acknowledgedByUserId": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa",
"acknowledgedAt": {
"_type": "DateTime",
"value": "2023-10-01T12:00:00Z"
},
"acknowledgedByTeamId": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa",
"lastExecutedEscalationRuleOrder": 42,
"lastExecutedEscalationRule": {
"_id": "bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb"
},
"lastExecutedEscalationRuleId": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa",
"onCallPolicyExecutionRepeatCount": 42,
"scheduleGapRetryCount": 42,
"pagingStartsAt": {
"_type": "DateTime",
"value": "2023-10-01T12:00:00Z"
},
"pagingStartedEarlyReason": "This is an example of longer text content that provides detailed information.",
"aiHoldOutcome": "Example Text",
"acknowledgementTimeoutStartedAt": {
"_type": "DateTime",
"value": "2023-10-01T12:00:00Z"
},
"pageAgainNumber": 42,
"triggeredByUser": {
"_id": "bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb"
},
"triggeredByUserId": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa",
"triggeredByWorkflowId": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa",
"triggeredByWorkflowName": "Example Text",
"pageMessage": "This is an example of longer text content that provides detailed information."
}
}Changes
No recorded changes to this operation across all 1 revision of this API.