Page tree
Skip to end of metadata
Go to start of metadata

POST /attachment

Upload attachment file

Example URI

 http://example.com/restful_api/attachment

Parameters

Parameter

Type

Require ?

Description

category_name

string

yes

Type of item to attach file

file[]

file

yes

Attachment file

Response

{
  "status": "success",
  "data": [
    {
      "attachment_id": 1,
      "is_image": true,
      "image_link": "http://example.com/path-to-image"
    }
  ],
  "messages": [
    "attachment successfully added."
  ]
}
  • No labels