Upload an attachment
xmatters_upload_an_attachmentUpload a file to xMatters temporary storage and retrieve the returned path for attaching it to an event or scenario.
Instructions
Upload an attachment. POST /api/xm/1/attachments. Multipart file upload to temporary storage. Use the returned path when attaching to an event or scenario. File bytes are supplied by the MCP file input, not a filesystem path. Body fields: file, fileName. Reference: https://help.xmatters.com/xmapi/#upload-an-attachment Requires operator write opt-in and confirm:true; may notify recipients or change tenant data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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. |