Header name | Description |
---|---|
Content-Type required |
application/json |
X-API-KEY required |
YOUR_API_KEY |
Param name | Description |
---|---|
title required |
Title Validations:
|
// Successful request POST /api/v2/assets/NBmnCtuFCbI88s1cNHJX/attachments { "title": "sample attachment" } 200 { "asset": { "id": "Hd0WZ_Wfpsv9_51bxXBt", "external_id": null, "parent_id": "NBmnCtuFCbI88s1cNHJX", "project_id": null, "owner": "admin-user-67@example.com", "title": "sample attachment", "description": null, "category": null, "tags": [], "ai_tags": [], "status": "open", "media_type": "placeholder", "original_filename": null, "drop_folder_id": null, "md5_sum": null, "created_date": "2023-11-27T09:42:52.577Z", "modification_date": "2023-11-27T09:42:52.577Z", "deleted": null } }
// When missing required parameters POST /api/v2/assets/A19eXjFE5vFsMssy67fE/attachments 422 { "error": "Missing parameter title" }
// With invalid parameters POST /api/v2/assets/MuisjSIDxKPdtEiJsvwP/attachments { "title": "Testing too long title: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" } 400 { "error": "Title is too long (maximum is 255 characters)" }
Code | Description |
---|---|
401 | Unauthorized |
404 | Not found |
500 | Internal Server Error |
422 | Missing parameters |