Upload

upload file

upload file

post/answer/api/v1/file

Request

  • Base URL
    / (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /answer/api/v1/file
  • Auth
    API key in header Authorization

Request body multipart/form-data

source'post' | 'post_attachment' | 'avatar' | 'branding' required

identify the source of the file upload

filestring binary required

file

Response

OK

codeinteger

http code

datastring

response data

msgstring

response message

reasonstring

reason key

Changes

No recorded changes to this operation across all 50 revisions of this API.