Upload Content

Description

The asset method is used to upload content or media.

URL https://publish.broadsign.com/api/asset/
Method POST
Header Content-Type: multipart/form-data;

Sample Request

Copy
{
  “name”: “image.jpg”,
  “type”: “image”,
  “file”: <image.jpg>
}

Sample Response

Status: 200 (OK)

Copy
{
  "id":10000001,
  "name":"image.jpg",
  "type":"image",
  "parent_id":null,
  "file":"https://publish.broadsign.com/media/c625a4463ec904c78a97577c23901acd/assets/image.jpg",
  "size":14982,
  "created_date":"2020-04-14T06:43:05.116119-04:00",
  "modified_date":"2020-04-14T06:43:05.224398-04:00",
  "status":2,
    "owner":{
    "email":"Clarice@broadsign.com",
    "first_name":"Clarice",
    "last_name":null
  },
  "metadata":{
    "mime":"JPEG"
  },
  "path":[

  ],
"file_path":"/media/c625a4463ec904c78a97577c23901acd/assets/image.jpg",
  "is_owner":null,
  "is_shared":null,
  "comments_count":0,
  "access_type":2,
  "domain_id":1
}

Error Response Status Code

Status: 400 (BAD REQUEST)