File Content

Sets the binary content of the file attachment. May only be called once and then contents can't be modified.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Uploads the file's content. Send the raw bytes of the file as the request body, not JSON or form data. To try it on this page, choose the file in RAW_BODY below and set content-type to the file's type.

From the command line:

curl -X PUT "https://api.marketcircle.net/v1/files/5000/content" \
  -H "Authorization: Bearer <access token>" \
  -H "Content-Type: application/pdf" \
  --data-binary @proposal.pdf

A successful upload returns 200 OK with {"result":"ok"}. The file's size is set from the upload, and is_uploaded becomes true.

Content can only be uploaded once. Uploading again returns 409 Conflict with {"error":"already_uploaded"}. To replace a file, create a new one.

Path Params
int32
required

The file ID

Body Params
file

The file to upload. Its raw bytes are sent as the request body, as with --data-binary @path/to/file.

Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json