Update user asset
PATCH/api/v1/assets/user-assets/{asset_id}/
Mark user asset as uploaded
Path Parameters
asset_id:requiredstringAsset ID
Body Parameters
attributes:optionalobjectAdditional attributes to update for the asset
Scopes
assets:write
Update user asset
bash
curl -X PATCH \
"https://api.plane.so/api/v1/assets/user-assets/550e8400-e29b-41d4-a716-446655440002/" \
-H "X-API-Key: $PLANE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"attributes": {
"name": "Example Name",
"type": "image/jpeg",
"size": 1024000
},
"entity_type": "USER_AVATAR"
}'python
import requests
response = requests.patch(
"https://api.plane.so/api/v1/assets/user-assets/550e8400-e29b-41d4-a716-446655440002/",
headers={"X-API-Key": "your-api-key"},
json={
"attributes": {
"name": "Example Name",
"type": "image/jpeg",
"size": 1024000
},
"entity_type": "USER_AVATAR"
}
)
print(response.status_code)javascript
const response = await fetch("https://api.plane.so/api/v1/assets/user-assets/550e8400-e29b-41d4-a716-446655440002/", {
method: "PATCH",
headers: {
"X-API-Key": "your-api-key",
"Content-Type": "application/json",
},
body: JSON.stringify({
attributes: {
name: "Example Name",
type: "image/jpeg",
size: 1024000,
},
entity_type: "USER_AVATAR",
}),
});
console.log(response.status);Response204
No response body.

