Header name | Description |
---|---|
Content-Type required |
application/json |
X-API-KEY required |
YOUR_API_KEY |
Param name | Description |
---|---|
title required |
Title Validations:
|
// Project not found POST /api/v2/projects/:project_id/attachments { "title": "sample attachment" } 404 { "error": "project not found" }
// Successful request POST /api/v2/projects/czPBmrbRE76BOmD0Ykz8/attachments { "title": "sample attachment" } 200 { "asset": { "id": "u0wgdvwXs2KD3MgqNV8_", "external_id": null, "parent_id": "czPBmrbRE76BOmD0Ykz8", "project_id": null, "owner": "admin-user-74@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:54.394Z", "modification_date": "2023-11-27T09:42:54.394Z", "deleted": null } }
// When missing required parameters POST /api/v2/projects/GEgkmoV5jzJNLjdZAz7J/attachments 422 { "error": "Missing parameter title" }
// With invalid parameters POST /api/v2/projects/-23mQQaJiZrjw1MLBEc1/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 |