curl -X PUT "https://api.metabind.ai/app/v1/organizations/org123/projects/proj456/assets/asset789" \
-H "Authorization: Bearer YOUR_JWT" \
-H "Content-Type: application/json" \
-d '{
"name": "updated-hero-image.jpg",
"metadata": {
"alt": "Updated hero image",
"caption": "New product showcase"
},
"tags": ["hero", "product", "featured"]
}'
const response = await fetch(
'https://api.metabind.ai/app/v1/organizations/org123/projects/proj456/assets/asset789',
{
method: 'PUT',
headers: {
'Authorization': 'Bearer YOUR_JWT',
'Content-Type': 'application/json'
},
body: JSON.stringify({
name: 'updated-hero-image.jpg',
metadata: {
alt: 'Updated hero image',
caption: 'New product showcase'
},
tags: ['hero', 'product', 'featured']
})
}
);
const data = await response.json();
{
"data": {
"id": "asset789",
"name": "updated-hero-image.jpg",
"description": null,
"type": "image/jpeg",
"status": "active",
"url": "https://cdn.metabind.ai/org123/proj456/assets/asset789/updated-hero-image.jpg",
"size": 2048576,
"metadata": {
"width": 1920,
"height": 1080,
"format": "jpeg",
"alt": "Updated hero image",
"caption": "New product showcase"
},
"tags": ["hero", "product", "featured"],
"createdAt": "2024-03-20T10:00:00Z",
"updatedAt": "2024-03-21T15:30:00Z"
}
}
Assets
Update Asset
Update asset metadata, name, or tags
PUT
/
app
/
v1
/
organizations
/
{organizationId}
/
projects
/
{projectId}
/
assets
/
{id}
curl -X PUT "https://api.metabind.ai/app/v1/organizations/org123/projects/proj456/assets/asset789" \
-H "Authorization: Bearer YOUR_JWT" \
-H "Content-Type: application/json" \
-d '{
"name": "updated-hero-image.jpg",
"metadata": {
"alt": "Updated hero image",
"caption": "New product showcase"
},
"tags": ["hero", "product", "featured"]
}'
const response = await fetch(
'https://api.metabind.ai/app/v1/organizations/org123/projects/proj456/assets/asset789',
{
method: 'PUT',
headers: {
'Authorization': 'Bearer YOUR_JWT',
'Content-Type': 'application/json'
},
body: JSON.stringify({
name: 'updated-hero-image.jpg',
metadata: {
alt: 'Updated hero image',
caption: 'New product showcase'
},
tags: ['hero', 'product', 'featured']
})
}
);
const data = await response.json();
{
"data": {
"id": "asset789",
"name": "updated-hero-image.jpg",
"description": null,
"type": "image/jpeg",
"status": "active",
"url": "https://cdn.metabind.ai/org123/proj456/assets/asset789/updated-hero-image.jpg",
"size": 2048576,
"metadata": {
"width": 1920,
"height": 1080,
"format": "jpeg",
"alt": "Updated hero image",
"caption": "New product showcase"
},
"tags": ["hero", "product", "featured"],
"createdAt": "2024-03-20T10:00:00Z",
"updatedAt": "2024-03-21T15:30:00Z"
}
}
Update an asset’s metadata, name, description, or tags. The file itself cannot be replaced - upload a new asset instead.
Path Parameters
The unique identifier of the organization
The unique identifier of the project
The unique identifier of the asset
Request Body
New display name for the asset
New description following the structured markdown format
New array of tag IDs. Replaces existing tags.
Response
Returns the updated Asset object.curl -X PUT "https://api.metabind.ai/app/v1/organizations/org123/projects/proj456/assets/asset789" \
-H "Authorization: Bearer YOUR_JWT" \
-H "Content-Type: application/json" \
-d '{
"name": "updated-hero-image.jpg",
"metadata": {
"alt": "Updated hero image",
"caption": "New product showcase"
},
"tags": ["hero", "product", "featured"]
}'
const response = await fetch(
'https://api.metabind.ai/app/v1/organizations/org123/projects/proj456/assets/asset789',
{
method: 'PUT',
headers: {
'Authorization': 'Bearer YOUR_JWT',
'Content-Type': 'application/json'
},
body: JSON.stringify({
name: 'updated-hero-image.jpg',
metadata: {
alt: 'Updated hero image',
caption: 'New product showcase'
},
tags: ['hero', 'product', 'featured']
})
}
);
const data = await response.json();
{
"data": {
"id": "asset789",
"name": "updated-hero-image.jpg",
"description": null,
"type": "image/jpeg",
"status": "active",
"url": "https://cdn.metabind.ai/org123/proj456/assets/asset789/updated-hero-image.jpg",
"size": 2048576,
"metadata": {
"width": 1920,
"height": 1080,
"format": "jpeg",
"alt": "Updated hero image",
"caption": "New product showcase"
},
"tags": ["hero", "product", "featured"],
"createdAt": "2024-03-20T10:00:00Z",
"updatedAt": "2024-03-21T15:30:00Z"
}
}
⌘I