Create an attachment key
Changed onCreate an attachment key. Allows attachments to be uploaded separately from the related content.
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_new_keyremoved and replaced withpostAttachmentsNewKey - 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
- 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
postAttachmentsNewKeyremoved and replaced withpost_attachments_new_key - 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
- breaking