Upload attachment to a scenario
xmatters_upload_attachment_to_a_scenarioAttach a file to a scenario in xMatters by sending file bytes and a filename as multipart form data, so related documents are stored with the scenario.
Instructions
Upload attachment to a scenario. POST /api/xm/1/forms/{formId}/scenarios/{scenarioId}/attachments. Multipart file upload. The reference says multi-part/form in examples; use standard multipart/form-data as documented for the equivalent attachment upload. File bytes are supplied by the MCP file input, not a filesystem path. See C13. Body fields: file, fileName. Reference: https://help.xmatters.com/xmapi/#upload-attachment-to-a-scenario Requires operator write opt-in and confirm:true; may notify recipients or change tenant data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| query | No | API query parameters; arrays are comma-joined. Documented names: none. Pagination is explicit using offset and limit; results are not automatically combined. | |
| fields | No | ||
| upload | Yes | ||
| confirm | Yes | Explicit approval of this exact mutation. Operator must also enable XMATTERS_ALLOW_WRITES. |