Upload an attachment
Changed onUpload an attachment. An API attachment key must be created first. Must be submitted using multipart/form-data encoding.
Request
- Base URLhttps://example.com/api
- Auth
- OAuth 2Authorization codehttps://example.com/oauth2/authorizeToken URLhttps://example.com/api/oauth2/tokenScopesattachment:write
- or API key in header XF-Api-Key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body multipart/form-data
Response
OK
Changes
- breaking
request body became required
- breaking
removed the media type
application/jsonfrom the request body - breaking
removed the media type
application/x-www-form-urlencodedfrom the request body - info
api operation id
post_attachments_removed and replaced withpostAttachments - info
the endpoint scheme security
XF-Api-Keywas added to the API - info
the endpoint scheme security
XF-OAuth2was added to the API - info
added the new optional
headerrequest parameterXF-Api-Userto all path's operations - info
added the new optional
queryrequest parameterapi_bypass_permissionsto all path's operations - info
added the media type
multipart/form-datato the request body - info
removed the non-success response with the status
- breaking
- breaking
removed the media type
multipart/form-datafrom the request body - warning
the optional response header
XF-Latest-Api-Versionremoved for the status200 - warning
the optional response header
XF-Request-Userremoved for the status200 - warning
the optional response header
XF-Request-User-Extrasremoved for the status200 - warning
the optional response header
XF-Used-Api-Versionremoved for the status200 - info
api operation id
postAttachmentsremoved and replaced withpost_attachments_ - info
the endpoint scheme security
XF-Api-Keywas removed from the API - info
the endpoint scheme security
XF-OAuth2was removed from the API - info
request body became optional
- info
added the media type
application/jsonto the request body - info
added the media type
application/x-www-form-urlencodedto the request body - info
added the non-success response with the status
- breaking