Attachments

Upload an attachment

Changed on

Upload an attachment. An API attachment key must be created first. Must be submitted using multipart/form-data encoding.

post/attachments/

Request

Request body multipart/form-data

keystring required

The API attachment key to associated with

attachmentstring binary required

The attachment file

Response

OK

Changes

    • breaking

      request body became required

    • breaking

      removed the media type application/json from the request body

    • breaking

      removed the media type application/x-www-form-urlencoded from the request body

    • info

      api operation id post_attachments_ removed and replaced with postAttachments

    • info

      the endpoint scheme security XF-Api-Key was added to the API

    • info

      the endpoint scheme security XF-OAuth2 was added to the API

    • info

      added the new optional header request parameter XF-Api-User to all path's operations

    • info

      added the new optional query request parameter api_bypass_permissions to all path's operations

    • info

      added the media type multipart/form-data to the request body

    • info

      removed the non-success response with the status

    • breaking

      removed the media type multipart/form-data from the request body

    • warning

      the optional response header XF-Latest-Api-Version removed for the status 200

    • warning

      the optional response header XF-Request-User removed for the status 200

    • warning

      the optional response header XF-Request-User-Extras removed for the status 200

    • warning

      the optional response header XF-Used-Api-Version removed for the status 200

    • info

      api operation id postAttachments removed and replaced with post_attachments_

    • info

      the endpoint scheme security XF-Api-Key was removed from the API

    • info

      the endpoint scheme security XF-OAuth2 was removed from the API

    • info

      request body became optional

    • info

      added the media type application/json to the request body

    • info

      added the media type application/x-www-form-urlencoded to the request body

    • info

      added the non-success response with the status