Create a shared library
xmatters_create_a_shared_libraryCreate a shared library in xMatters by submitting a JSON payload with name, script, and plan. Requires explicit confirmation and write permissions.
Instructions
Create a shared library. POST /api/xm/1/shared-libraries. Body fields: name, script, plan. Reference: https://help.xmatters.com/xmapi/#create-a-shared-library 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-shared-library | |
| 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. |