Endpoint
Overview
Update the tag on a media item. Works for both user-uploaded media and social audio.Request Body
The ID of the media item to update
The new tag value
Response
The updated media object
curl -X POST https://api.ugc.inc/media/update-tag \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"id": "media_abc123",
"tag": "featured"
}'
{
"ok": true,
"code": 200,
"data": {
"id": "media_abc123",
"org_id": "org_xyz789",
"name": "video.mp4",
"tag": "featured",
"type": "video",
"url": "https://api.ugc.inc/media/file/media_abc123",
"created_at": "2024-01-15T10:30:00.000Z",
"media_type": "user_media"
}
}
Update the tag on a media item
POST https://api.ugc.inc/media/update-tag
curl -X POST https://api.ugc.inc/media/update-tag \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"id": "media_abc123",
"tag": "featured"
}'
{
"ok": true,
"code": 200,
"data": {
"id": "media_abc123",
"org_id": "org_xyz789",
"name": "video.mp4",
"tag": "featured",
"type": "video",
"url": "https://api.ugc.inc/media/file/media_abc123",
"created_at": "2024-01-15T10:30:00.000Z",
"media_type": "user_media"
}
}