Télécharger du contenu
Description
La méthode asset est utilisée pour télécharger du contenu ou média.
URL | https://publish.broadsign.com/api/asset/ |
Méthode | POST |
En-tête | Content-Type: multipart/form-data; |
Requête | { “name”: “image.jpg”, “type”: “image”, “file”: <image.jpg> } |
Réponse | Status: 200 (OK){ "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 } |
Code d'état de réponse d'erreur | Status: 400 (BAD REQUEST) |