Upload an attachment
POST/attachments/
Upload an attachment. An API attachment key must be created first. Must be submitted using multipart/form-data encoding.
Request
Responses
- 200
- default
OK
Response Headers
XF-Latest-Api-Version
The latest API version available.
XF-Used-Api-Version
The API version used to render the response.
XF-Request-User
The user ID of the request user.
XF-Request-User-Extras
Additional information about the request user in JSON encoding. Requires XF-Request-User header to be non-zero.
Triggered if the user making the request does not match the user that created the attachment key.
Possible errors
attachment_key_user_wrong: Triggered if the user making the request does not match the user that created the attachment key.
Response Headers
XF-Latest-Api-Version
The latest API version available.
XF-Used-Api-Version
The API version used to render the response.
XF-Request-User
The user ID of the request user.
XF-Request-User-Extras
Additional information about the request user in JSON encoding. Requires XF-Request-User header to be non-zero.