nexus_upload_attachment
Upload base64-encoded files as attachments via GraphQL multipart requests, returning an attachment ID to reference in comment mutations.
Instructions
Upload an attachment (usable in comments) via the v2 GraphQL multipart spec.
Accepts base64-encoded content and posts it as an Apollo Upload multipart request. Attachments can then be referenced by id in comment mutations.
Returns: JSON {attachment: {id, filename, url}} or an error string.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | File name including extension. | |
| mime_type | No | MIME type. | application/octet-stream |
| content_base64 | Yes | Base64-encoded file content. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |