Playbooks
Create a playbook
post/plugins/playbooks/api/v0/playbooks
Request body
Example request
{
"title": "Cloud PlaybookRuns",
"description": "A playbook to follow when there is a playbook run regarding the availability of the cloud service.",
"team_id": "p03rbi6viyztysbqnkvcqyel2i",
"create_public_playbook_run": true,
"public": true,
"checklists": [
{
"title": "Triage issue",
"items": [
{
"title": "Gather information from customer.",
"command": "/opsgenie on-call",
"description": "Ask the customer for more information in [Zendesk](https://www.zendesk.com/)."
}
]
}
],
"member_ids": [
"ilh6s1j4yefbdhxhtlzt179i6m"
],
"broadcast_channel_ids": [
"2zh7rpashwfwapwaqyslmhwbax"
],
"invited_user_ids": [
"01kidjn9iozv7bist427w4gkjo"
],
"invite_users_enabled": true,
"default_owner_id": "9dtruav6d9ce3oqnc5pwhtqtfq",
"announcement_channel_id": "8iofau5swv32l6qtk3vlxgobta",
"announcement_channel_enabled": true,
"webhook_on_creation_url": "https://httpbin.org/post",
"webhook_on_creation_enabled": true,
"webhook_on_status_update_url": "https://httpbin.org/post",
"webhook_on_status_update_enabled": true
}Response
ID of the created playbook.
Example response
{
"id": "iz0g457ikesz55dhxcfa0fk9yy"
}