IntegrationsPagerdutyActions
Create PagerDuty incident
Create an incident on a service. Requires write. Unsafe because PagerDuty does not guarantee replay idempotency; a duplicate open incident_key is a conflict.
incidents.create · PagerDuty · v1
Details
Scopes
write
Input
| Name | Type | Required | Constraints |
|---|---|---|---|
(root) | object | Yes | additionalProperties false |
title | string | Yes | minLength 1; maxLength 1024 |
service_id | string | Yes | minLength 1; maxLength 100 |
urgency | string | No | enum high | low |
incident_key | string | No | minLength 1; maxLength 255 |
details | string | No | maxLength 10000 |
Output
| Name | Type | Required | Constraints |
|---|---|---|---|
(root) | object | Yes | additionalProperties false |
id | string | Yes | minLength 1; maxLength 100 |
incident_number | integer | Yes | minimum 1 |
title | string | Yes | minLength 1; maxLength 1024 |
status | string | Yes | minLength 1; maxLength 64 |
urgency | string | Yes | enum high | low |
html_url | string | Yes | maxLength 2048 |
service | object | Yes | additionalProperties false |
service.id | string | Yes | minLength 1; maxLength 100 |
service.summary | string | Yes | minLength 1; maxLength 200 |
service.html_url | string | No | maxLength 2048 |
service.type | string | No | maxLength 64 |
assignments | array<object> | Yes | maxItems 25 |
assignments[] | object | Yes | additionalProperties false |
assignments[].assignee | object | Yes | additionalProperties false |
assignments[].assignee.id | string | Yes | minLength 1; maxLength 100 |
assignments[].assignee.summary | string | Yes | minLength 1; maxLength 200 |
assignments[].assignee.html_url | string | No | maxLength 2048 |
assignments[].assignee.type | string | No | maxLength 64 |
assignments[].at | string | No | minLength 1; maxLength 64 |
escalation_policy | object | No | additionalProperties false |
escalation_policy.id | string | Yes | minLength 1; maxLength 100 |
escalation_policy.summary | string | Yes | minLength 1; maxLength 200 |
escalation_policy.html_url | string | No | maxLength 2048 |
escalation_policy.type | string | No | maxLength 64 |
created_at | string | Yes | minLength 1; maxLength 64 |
updated_at | string | No | minLength 1; maxLength 64 |
resolved_at | string | No | minLength 1; maxLength 64 |
Raw schema
Input
{
"type": "object",
"additionalProperties": false,
"properties": {
"title": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"service_id": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"urgency": {
"type": "string",
"enum": [
"high",
"low"
]
},
"incident_key": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"details": {
"type": "string",
"maxLength": 10000
}
},
"required": [
"title",
"service_id"
]
}Output
{
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"incident_number": {
"type": "integer",
"minimum": 1
},
"title": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"status": {
"type": "string",
"minLength": 1,
"maxLength": 64
},
"urgency": {
"type": "string",
"enum": [
"high",
"low"
]
},
"html_url": {
"type": "string",
"maxLength": 2048
},
"service": {
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"summary": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"html_url": {
"type": "string",
"maxLength": 2048
},
"type": {
"type": "string",
"maxLength": 64
}
},
"required": [
"id",
"summary"
]
},
"assignments": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"assignee": {
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"summary": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"html_url": {
"type": "string",
"maxLength": 2048
},
"type": {
"type": "string",
"maxLength": 64
}
},
"required": [
"id",
"summary"
]
},
"at": {
"type": "string",
"minLength": 1,
"maxLength": 64
}
},
"required": [
"assignee"
]
},
"maxItems": 25
},
"escalation_policy": {
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"summary": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"html_url": {
"type": "string",
"maxLength": 2048
},
"type": {
"type": "string",
"maxLength": 64
}
},
"required": [
"id",
"summary"
]
},
"created_at": {
"type": "string",
"minLength": 1,
"maxLength": 64
},
"updated_at": {
"type": "string",
"minLength": 1,
"maxLength": 64
},
"resolved_at": {
"type": "string",
"minLength": 1,
"maxLength": 64
}
},
"required": [
"id",
"incident_number",
"title",
"status",
"urgency",
"html_url",
"service",
"assignments",
"created_at"
]
}