curl -X POST "https://api.metabind.ai/api/v1/organizations/org123/projects/proj456/assets/asset789/status" \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"status": "deleted"
}'
{
"data": {
"id": "asset789",
"name": "hero-image.jpg",
"type": "image/jpeg",
"status": "deleted",
"url": "https://cdn.metabind.ai/org123/proj456/assets/asset789/hero-image.jpg",
"size": 2048576,
"metadata": {
"width": 1920,
"height": 1080
},
"tags": ["hero"],
"createdAt": "2024-03-20T10:00:00Z",
"updatedAt": "2024-03-21T16:00:00Z"
}
}
Change an asset status to active or deleted
curl -X POST "https://api.metabind.ai/api/v1/organizations/org123/projects/proj456/assets/asset789/status" \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"status": "deleted"
}'
{
"data": {
"id": "asset789",
"name": "hero-image.jpg",
"type": "image/jpeg",
"status": "deleted",
"url": "https://cdn.metabind.ai/org123/proj456/assets/asset789/hero-image.jpg",
"size": 2048576,
"metadata": {
"width": 1920,
"height": 1080
},
"tags": ["hero"],
"createdAt": "2024-03-20T10:00:00Z",
"updatedAt": "2024-03-21T16:00:00Z"
}
}
deleted) remain in the system and can be restored. Hard deletion is done via the Delete Asset endpoint.active, deletedcurl -X POST "https://api.metabind.ai/api/v1/organizations/org123/projects/proj456/assets/asset789/status" \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"status": "deleted"
}'
{
"data": {
"id": "asset789",
"name": "hero-image.jpg",
"type": "image/jpeg",
"status": "deleted",
"url": "https://cdn.metabind.ai/org123/proj456/assets/asset789/hero-image.jpg",
"size": 2048576,
"metadata": {
"width": 1920,
"height": 1080
},
"tags": ["hero"],
"createdAt": "2024-03-20T10:00:00Z",
"updatedAt": "2024-03-21T16:00:00Z"
}
}