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."
]
}