Skip to main content

Endpoint

POST https://api.ugc.inc/media/update-tag

Overview

Update the tag on a media item. Works for both user-uploaded media and social audio.

Request Body

id
string
required
The ID of the media item to update
tag
string
required
The new tag value

Response

data
UserMedia | SocialAudio
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"
  }
}