Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

POST /attachment

Upload attachment file

Example URI

Code Block
bash
bash

 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
php
php

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