---
title: "Create On-Call Duty Execution Log"
method: POST
path: "/on-call-duty-policy-execution-log"
tags: ["On-Call Duty Execution Log"]
---

# Create On-Call Duty Execution Log

`POST /on-call-duty-policy-execution-log`

## Request

- Base URL: `https://oneuptime.com/api`
- URL: `https://oneuptime.com/api/on-call-duty-policy-execution-log`
- Auth: API key in header `APIKey`
- TypeScript: <https://skmtc.dev/oneuptime/apis/oneuptime-openapi-specification/docs/on-call-duty-policy-execution-log/post.ts> (a function with typed inputs; its response is checked against the schema)

Endpoint to create a new On-Call Duty Execution Log

## Request body

- object
  - `data` OnCallDutyPolicyExecutionLogCreateSchema, required: Create schema for OnCallDutyPolicyExecutionLog model. Create
    - `projectId` string, uuid: ID of your OneUptime Project in which this object belongs. Permissions - Create: [Project Owner, Project Admin, Project Member, On-Call Admin, On-Call Member, Execute On-Call Duty Policy], Read: [Project Owner, Project Admin, Project Member, Viewer, On-Call Admin, On-Call Member, On-Call Viewer, Read On-Call Duty Policy Execution Log], Update: [No access - you don't have permission for this operation]
    - `onCallDutyPolicyId` string, uuid: ID of the On-Call Policy this execution log is a run of. Required when you create one. Empty for a direct page: people, a team or an on-call schedule paged without an on-call policy. Permissions - Create: [Project Owner, Project Admin, Project Member, On-Call Admin, On-Call Member, Execute On-Call Duty Policy], Read: [Project Owner, Project Admin, Project Member, Viewer, On-Call Admin, On-Call Member, On-Call Viewer, Read On-Call Duty Policy Execution Log], Update: [No access - you don't have permission for this operation]
    - `triggeredByIncidentId` string, uuid: ID of the incident which triggered this on-call escalation policy. Permissions - Create: [Project Owner, Project Admin, Project Member, On-Call Admin, On-Call Member, Execute On-Call Duty Policy], Read: [Project Owner, Project Admin, Project Member, Viewer, On-Call Admin, On-Call Member, On-Call Viewer, Read On-Call Duty Policy Execution Log], Update: [No access - you don't have permission for this operation]
    - `triggeredByAlertId` string, uuid: ID of the incident which triggered this on-call escalation policy. Permissions - Create: [Project Owner, Project Admin, Project Member, On-Call Admin, On-Call Member, Execute On-Call Duty Policy], Read: [Project Owner, Project Admin, Project Member, Viewer, On-Call Admin, On-Call Member, On-Call Viewer, Read On-Call Duty Policy Execution Log], Update: [No access - you don't have permission for this operation]
    - `triggeredByAlertEpisodeId` string, uuid: ID of the alert episode which triggered this on-call escalation policy. Permissions - Create: [Project Owner, Project Admin, Project Member, On-Call Admin, On-Call Member, Execute On-Call Duty Policy], Read: [Project Owner, Project Admin, Project Member, Viewer, On-Call Admin, On-Call Member, On-Call Viewer, Read On-Call Duty Policy Execution Log], Update: [No access - you don't have permission for this operation]
    - `triggeredByIncidentEpisodeId` string, uuid: ID of the incident episode which triggered this on-call escalation policy. Permissions - Create: [Project Owner, Project Admin, Project Member, On-Call Admin, On-Call Member, Execute On-Call Duty Policy], Read: [Project Owner, Project Admin, Project Member, Viewer, On-Call Admin, On-Call Member, On-Call Viewer, Read On-Call Duty Policy Execution Log], Update: [No access - you don't have permission for this operation]
    - `status` 'Waiting' | 'Scheduled' | 'Started' | 'Executing' | 'Execution Completed' | 'Execution Completed - No One Notified' | 'Error', required: Status of this execution. Permissions - Create: [Project Owner, Project Admin, Project Member, On-Call Admin, On-Call Member, Execute On-Call Duty Policy], Read: [Project Owner, Project Admin, Project Member, Viewer, On-Call Admin, On-Call Member, On-Call Viewer, Read On-Call Duty Policy Execution Log], Update: [No access - you don't have permission for this operation]
    - `statusMessage` string, required: Status message of this execution. Permissions - Create: [Project Owner, Project Admin, Project Member, On-Call Admin, On-Call Member, Execute On-Call Duty Policy], Read: [Project Owner, Project Admin, Project Member, Viewer, On-Call Admin, On-Call Member, On-Call Viewer, Read On-Call Duty Policy Execution Log], Update: [No access - you don't have permission for this operation]
    - `userNotificationEventType` 'Incident Created' | 'Alert Created' | 'Alert Episode Created' | 'Incident Episode Created', required: Type of event that triggered this on-call duty policy. Permissions - Create: [Project Owner, Project Admin, Project Member, On-Call Admin, On-Call Member, Execute On-Call Duty Policy], Read: [Project Owner, Project Admin, Project Member, Viewer, On-Call Admin, On-Call Member, On-Call Viewer, Read On-Call Duty Policy Execution Log], Update: [No access - you don't have permission for this operation]
    - `acknowledgedAt` object: When was this policy execution acknowledged? Permissions - Create: [Project Owner, Project Admin, Project Member, On-Call Admin, On-Call Member, Execute On-Call Duty Policy], Read: [Project Owner, Project Admin, Project Member, Viewer, On-Call Admin, On-Call Member, On-Call Viewer, Read On-Call Duty Policy Execution Log], Update: [No access - you don't have permission for this operation]
    - `acknowledgedByTeamId` string, uuid: Team ID who acknowledged this object (if this object was acknowledged by a Team). Permissions - Create: [Project Owner, Project Admin, Project Member, On-Call Admin, On-Call Member, Execute On-Call Duty Policy], Read: [Project Owner, Project Admin, Project Member, Viewer, On-Call Admin, On-Call Member, On-Call Viewer, Read On-Call Duty Policy Execution Log], Update: [No access - you don't have permission for this operation]
    - `lastExecutedEscalationRuleOrder` number: Which escalation rule was executed? Permissions - Create: [Project Owner, Project Admin, Project Member, On-Call Admin, On-Call Member, Execute On-Call Duty Policy], Read: [Project Owner, Project Admin, Project Member, Viewer, On-Call Admin, On-Call Member, On-Call Viewer, Read On-Call Duty Policy Execution Log], Update: [No access - you don't have permission for this operation]
    - `lastEscalationRuleExecutedAt` object: When was the escalation rule executed? Permissions - Create: [Project Owner, Project Admin, Project Member, On-Call Admin, On-Call Member, Execute On-Call Duty Policy], Read: [No access - you don't have permission for this operation], Update: [No access - you don't have permission for this operation]
    - `lastExecutedEscalationRuleId` string, uuid: ID of your On-Call Policy Last Executed Escalation Rule. Permissions - Create: [Project Owner, Project Admin, Project Member, On-Call Admin, On-Call Member, Execute On-Call Duty Policy], Read: [Project Owner, Project Admin, Project Member, Viewer, On-Call Admin, On-Call Member, On-Call Viewer, Read On-Call Duty Policy Execution Log], Update: [No access - you don't have permission for this operation]
    - `executeNextEscalationRuleInMinutes` number: How many minutes should we wait before executing the next escalation rule? Permissions - Create: [Project Owner, Project Admin, Project Member, On-Call Admin, On-Call Member, Execute On-Call Duty Policy], Read: [No access - you don't have permission for this operation], Update: [No access - you don't have permission for this operation]
    - `onCallPolicyExecutionRepeatCount` number: How many times did we execute this on-call policy? Permissions - Create: [Project Owner, Project Admin, Project Member, On-Call Admin, On-Call Member, Execute On-Call Duty Policy], Read: [Project Owner, Project Admin, Project Member, Viewer, On-Call Admin, On-Call Member, On-Call Viewer, Read On-Call Duty Policy Execution Log], Update: [No access - you don't have permission for this operation]

## Response `201`

Created successfully

- object
  - `data` OnCallDutyPolicyExecutionLogReadSchema: Read schema for OnCallDutyPolicyExecutionLog model. Read
    - `_id` string, uuid: ID of this object. Permissions - Create: [Project Owner, Project Admin, Project Member, On-Call Admin, On-Call Member, Execute On-Call Duty Policy], Read: [Project Owner, Project Admin, Project Member, Viewer, On-Call Admin, On-Call Member, On-Call Viewer, Read On-Call Duty Policy Execution Log], Update: [No access - you don't have permission for this operation]
    - `createdAt` object: Date and Time when the object was created. Permissions - Create: [Project Owner, Project Admin, Project Member, On-Call Admin, On-Call Member, Execute On-Call Duty Policy], Read: [Project Owner, Project Admin, Project Member, Viewer, On-Call Admin, On-Call Member, On-Call Viewer, Read On-Call Duty Policy Execution Log], Update: [No access - you don't have permission for this operation]
    - `updatedAt` object: Date and Time when the object was updated. Permissions - Create: [Project Owner, Project Admin, Project Member, On-Call Admin, On-Call Member, Execute On-Call Duty Policy], Read: [Project Owner, Project Admin, Project Member, Viewer, On-Call Admin, On-Call Member, On-Call Viewer, Read On-Call Duty Policy Execution Log], Update: [No access - you don't have permission for this operation]
    - `deletedAt` object: Date and Time when the object was deleted. Permissions - Create: [Project Owner, Project Admin, Project Member, On-Call Admin, On-Call Member, Execute On-Call Duty Policy], Read: [Project Owner, Project Admin, Project Member, Viewer, On-Call Admin, On-Call Member, On-Call Viewer, Read On-Call Duty Policy Execution Log], Update: [No access - you don't have permission for this operation]
    - `projectId` string, uuid: ID of your OneUptime Project in which this object belongs. Permissions - Create: [Project Owner, Project Admin, Project Member, On-Call Admin, On-Call Member, Execute On-Call Duty Policy], Read: [Project Owner, Project Admin, Project Member, Viewer, On-Call Admin, On-Call Member, On-Call Viewer, Read On-Call Duty Policy Execution Log], Update: [No access - you don't have permission for this operation]
    - `onCallDutyPolicyId` string, uuid: ID of the On-Call Policy this execution log is a run of. Required when you create one. Empty for a direct page: people, a team or an on-call schedule paged without an on-call policy. Permissions - Create: [Project Owner, Project Admin, Project Member, On-Call Admin, On-Call Member, Execute On-Call Duty Policy], Read: [Project Owner, Project Admin, Project Member, Viewer, On-Call Admin, On-Call Member, On-Call Viewer, Read On-Call Duty Policy Execution Log], Update: [No access - you don't have permission for this operation]
    - `triggeredByIncidentId` string, uuid: ID of the incident which triggered this on-call escalation policy. Permissions - Create: [Project Owner, Project Admin, Project Member, On-Call Admin, On-Call Member, Execute On-Call Duty Policy], Read: [Project Owner, Project Admin, Project Member, Viewer, On-Call Admin, On-Call Member, On-Call Viewer, Read On-Call Duty Policy Execution Log], Update: [No access - you don't have permission for this operation]
    - `triggeredByAlertId` string, uuid: ID of the incident which triggered this on-call escalation policy. Permissions - Create: [Project Owner, Project Admin, Project Member, On-Call Admin, On-Call Member, Execute On-Call Duty Policy], Read: [Project Owner, Project Admin, Project Member, Viewer, On-Call Admin, On-Call Member, On-Call Viewer, Read On-Call Duty Policy Execution Log], Update: [No access - you don't have permission for this operation]
    - `triggeredByAlertEpisodeId` string, uuid: ID of the alert episode which triggered this on-call escalation policy. Permissions - Create: [Project Owner, Project Admin, Project Member, On-Call Admin, On-Call Member, Execute On-Call Duty Policy], Read: [Project Owner, Project Admin, Project Member, Viewer, On-Call Admin, On-Call Member, On-Call Viewer, Read On-Call Duty Policy Execution Log], Update: [No access - you don't have permission for this operation]
    - `triggeredByIncidentEpisodeId` string, uuid: ID of the incident episode which triggered this on-call escalation policy. Permissions - Create: [Project Owner, Project Admin, Project Member, On-Call Admin, On-Call Member, Execute On-Call Duty Policy], Read: [Project Owner, Project Admin, Project Member, Viewer, On-Call Admin, On-Call Member, On-Call Viewer, Read On-Call Duty Policy Execution Log], Update: [No access - you don't have permission for this operation]
    - `status` 'Waiting' | 'Scheduled' | 'Started' | 'Executing' | 'Execution Completed' | 'Execution Completed - No One Notified' | 'Error', required: Status of this execution. Permissions - Create: [Project Owner, Project Admin, Project Member, On-Call Admin, On-Call Member, Execute On-Call Duty Policy], Read: [Project Owner, Project Admin, Project Member, Viewer, On-Call Admin, On-Call Member, On-Call Viewer, Read On-Call Duty Policy Execution Log], Update: [No access - you don't have permission for this operation]
    - `statusMessage` string, required: Status message of this execution. Permissions - Create: [Project Owner, Project Admin, Project Member, On-Call Admin, On-Call Member, Execute On-Call Duty Policy], Read: [Project Owner, Project Admin, Project Member, Viewer, On-Call Admin, On-Call Member, On-Call Viewer, Read On-Call Duty Policy Execution Log], Update: [No access - you don't have permission for this operation]
    - `userNotificationEventType` 'Incident Created' | 'Alert Created' | 'Alert Episode Created' | 'Incident Episode Created', required: Type of event that triggered this on-call duty policy. Permissions - Create: [Project Owner, Project Admin, Project Member, On-Call Admin, On-Call Member, Execute On-Call Duty Policy], Read: [Project Owner, Project Admin, Project Member, Viewer, On-Call Admin, On-Call Member, On-Call Viewer, Read On-Call Duty Policy Execution Log], Update: [No access - you don't have permission for this operation]
    - `createdByUserId` string, uuid: User ID who created this object (if this object was created by a User). Permissions - Create: [No access - you don't have permission for this operation], Read: [Project Owner, Project Admin, Project Member, Viewer, On-Call Admin, On-Call Member, On-Call Viewer, Read On-Call Duty Policy Execution Log], Update: [No access - you don't have permission for this operation]
    - `deletedByUserId` string, uuid: User ID who deleted this object (if this object was deleted by a User). Permissions - Create: [No access - you don't have permission for this operation], Read: [Project Owner, Project Admin, Project Member, Viewer, On-Call Admin, On-Call Member, On-Call Viewer, Read On-Call Duty Policy Execution Log], Update: [No access - you don't have permission for this operation]
    - `acknowledgedByUserId` string, uuid: User ID who acknowledged this object (if this object was acknowledged by a User). Permissions - Create: [No access - you don't have permission for this operation], Read: [Project Owner, Project Admin, Project Member, Viewer, On-Call Admin, On-Call Member, On-Call Viewer, Read On-Call Duty Policy Execution Log], Update: [No access - you don't have permission for this operation]
    - `acknowledgedAt` object: When was this policy execution acknowledged? Permissions - Create: [Project Owner, Project Admin, Project Member, On-Call Admin, On-Call Member, Execute On-Call Duty Policy], Read: [Project Owner, Project Admin, Project Member, Viewer, On-Call Admin, On-Call Member, On-Call Viewer, Read On-Call Duty Policy Execution Log], Update: [No access - you don't have permission for this operation]
    - `acknowledgedByTeamId` string, uuid: Team ID who acknowledged this object (if this object was acknowledged by a Team). Permissions - Create: [Project Owner, Project Admin, Project Member, On-Call Admin, On-Call Member, Execute On-Call Duty Policy], Read: [Project Owner, Project Admin, Project Member, Viewer, On-Call Admin, On-Call Member, On-Call Viewer, Read On-Call Duty Policy Execution Log], Update: [No access - you don't have permission for this operation]
    - `lastExecutedEscalationRuleOrder` number: Which escalation rule was executed? Permissions - Create: [Project Owner, Project Admin, Project Member, On-Call Admin, On-Call Member, Execute On-Call Duty Policy], Read: [Project Owner, Project Admin, Project Member, Viewer, On-Call Admin, On-Call Member, On-Call Viewer, Read On-Call Duty Policy Execution Log], Update: [No access - you don't have permission for this operation]
    - `lastExecutedEscalationRuleId` string, uuid: ID of your On-Call Policy Last Executed Escalation Rule. Permissions - Create: [Project Owner, Project Admin, Project Member, On-Call Admin, On-Call Member, Execute On-Call Duty Policy], Read: [Project Owner, Project Admin, Project Member, Viewer, On-Call Admin, On-Call Member, On-Call Viewer, Read On-Call Duty Policy Execution Log], Update: [No access - you don't have permission for this operation]
    - `onCallPolicyExecutionRepeatCount` number: How many times did we execute this on-call policy? Permissions - Create: [Project Owner, Project Admin, Project Member, On-Call Admin, On-Call Member, Execute On-Call Duty Policy], Read: [Project Owner, Project Admin, Project Member, Viewer, On-Call Admin, On-Call Member, On-Call Viewer, Read On-Call Duty Policy Execution Log], Update: [No access - you don't have permission for this operation]
    - `scheduleGapRetryCount` number: How many times the current escalation rule has been re-sampled because its target schedule(s) momentarily had no on-call user. Permissions - Create: [No access - you don't have permission for this operation], Read: [Project Owner, Project Admin, Project Member, Viewer, On-Call Admin, On-Call Member, On-Call Viewer, Read On-Call Duty Policy Execution Log], Update: [No access - you don't have permission for this operation]
    - `pagingStartsAt` object: When this run starts paging, when it waited to: an on-call rule that pages only during working hours held it until they began. Empty when it paged straight away. Permissions - Create: [No access - you don't have permission for this operation], Read: [Project Owner, Project Admin, Project Member, Viewer, On-Call Admin, On-Call Member, On-Call Viewer, Read On-Call Duty Policy Execution Log], Update: [No access - you don't have permission for this operation]
    - `pagingStartedEarlyReason` string: Why this run started paging before the working hours it waited for began: its record came to match an on-call rule that pages right away. Empty for every other run. Permissions - Create: [No access - you don't have permission for this operation], Read: [Project Owner, Project Admin, Project Member, Viewer, On-Call Admin, On-Call Member, On-Call Viewer, Read On-Call Duty Policy Execution Log], Update: [No access - you don't have permission for this operation]
    - `aiHoldOutcome` 'Holding' | 'Resolved by AI' | 'Recovered on its own' | 'Handled by a person' | 'Handed off' | 'Hold time ran out' | 'Page now pressed': For a run OneUptime AI held while it investigated and fixed: Holding while it waits, then how the hold ended - Resolved by AI, Recovered on its own, Handled by a person, Handed off, Hold time ran out or Page now pressed. Empty for every other run. Permissions - Create: [No access - you don't have permission for this operation], Read: [Project Owner, Project Admin, Project Member, Viewer, On-Call Admin, On-Call Member, On-Call Viewer, Read On-Call Duty Policy Execution Log], Update: [No access - you don't have permission for this operation]
    - `acknowledgementTimeoutStartedAt` object: When the acknowledgement timeout started counting for this run's record: its last acknowledgement. Empty when it is not counting. Permissions - Create: [No access - you don't have permission for this operation], Read: [Project Owner, Project Admin, Project Member, Viewer, On-Call Admin, On-Call Member, On-Call Viewer, Read On-Call Duty Policy Execution Log], Update: [No access - you don't have permission for this operation]
    - `pageAgainNumber` number: For a run that pages again because its record stayed acknowledged without being resolved: which time, from 1. Empty for every other run. Permissions - Create: [No access - you don't have permission for this operation], Read: [Project Owner, Project Admin, Project Member, Viewer, On-Call Admin, On-Call Member, On-Call Viewer, Read On-Call Duty Policy Execution Log], Update: [No access - you don't have permission for this operation]
    - `triggeredByUserId` string, uuid: User ID who triggered this on-call policy. Permissions - Create: [No access - you don't have permission for this operation], Read: [Project Owner, Project Admin, Project Member, Viewer, On-Call Admin, On-Call Member, On-Call Viewer, Read On-Call Duty Policy Execution Log], Update: [No access - you don't have permission for this operation]
    - `triggeredByWorkflowId` string, uuid: ID of the workflow whose step started this page, when a workflow did. Permissions - Create: [No access - you don't have permission for this operation], Read: [Project Owner, Project Admin, Project Member, Viewer, On-Call Admin, On-Call Member, On-Call Viewer, Read On-Call Duty Policy Execution Log], Update: [No access - you don't have permission for this operation]
    - `triggeredByWorkflowName` string: Name of the workflow whose step started this page, as it was then. Permissions - Create: [No access - you don't have permission for this operation], Read: [Project Owner, Project Admin, Project Member, Viewer, On-Call Admin, On-Call Member, On-Call Viewer, Read On-Call Duty Policy Execution Log], Update: [No access - you don't have permission for this operation]
    - `pageMessage` string: What the person who paged from Slack or Microsoft Teams wrote to the people this page reaches. Permissions - Create: [No access - you don't have permission for this operation], Read: [Project Owner, Project Admin, Project Member, Viewer, On-Call Admin, On-Call Member, On-Call Viewer, Read On-Call Duty Policy Execution Log], Update: [No access - you don't have permission for this operation]

## Other responses

- `400`: Bad request. This response indicates that the request was malformed or contained invalid data.
- `401`: Unauthorized. This response indicates that the request requires user authentication.
- `402`: Payment Required. This response indicates that the request requires payment or a valid subscription.
- `403`: Forbidden. This response indicates that the server understood the request, but refuses to authorize it.
- `405`: Project not found. This response indicates that the requested project does not exist or is not accessible.
- `408`: Request Timeout. This response indicates that the server timed out waiting for the request.
- `415`: Unable to reach server. This response indicates that the server is currently unreachable or down.
- `422`: Not authorized. This response indicates that the user does not have permission to access the requested resource.
- `500`: Internal Server Error. This response indicates that the server encountered an unexpected condition that prevented it from fulfilling the request.

---

[API](https://skmtc.dev/oneuptime/apis/oneuptime-openapi-specification.md) - [All operations](https://skmtc.dev/oneuptime/apis/oneuptime-openapi-specification/llms.txt) - [OpenAPI document](https://skmtc.dev/oneuptime/apis/oneuptime-openapi-specification/revisions/ba3307d00304?raw)
