Create a subscription
xmatters_create_a_subscriptionCreate a subscription to route xMatters alerts to chosen recipients based on criteria. Use this API to automate alert assignments; confirmation is required before the subscription is created.
Instructions
Create a subscription. POST /api/xm/1/subscriptions. Body fields: name, description, form, owner, notificationDelay, criteria, recipients, targetDeviceNames. Reference: https://help.xmatters.com/xmapi/#create-a-subscription Requires operator write opt-in and confirm:true; may notify recipients or change tenant data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | Complete API JSON payload (including nested fields). See https://help.xmatters.com/xmapi/#create-a-subscription | |
| query | No | API query parameters; arrays are comma-joined. Documented names: none. Pagination is explicit using offset and limit; results are not automatically combined. | |
| confirm | Yes | Explicit approval of this exact mutation. Operator must also enable XMATTERS_ALLOW_WRITES. |