POST /attachment
Upload attachment file
Example URI
Code Block | ||||
---|---|---|---|---|
| ||||
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
Code Block | ||||
---|---|---|---|---|
| ||||
{
"status": "success",
"data": [
{
"attachment_id": 1,
"is_image": true,
"image_link": "http://example.com/path-to-image"
}
],
"messages": [
"attachment successfully added."
]
}
|