Skip to main content
PATCH https://cms.thepublive.com/publisher/{publisher_id}/media-library/{id}/ Updates metadata of an existing media asset. Only send the fields you want to change.

Path Parameters

NameTypeDescription
idintegerMedia ID

Headers

NameTypeRequiredDescription
usernamestringYesAPI Key
passwordstringYesAPI Secret
Content-TypestringYesapplication/json

Request Body

FieldTypeDescription
filenamestringFilename
alt_textstringAlt text
captionstringCaption
sourcestringSource/credit
meta_dataobjectMetadata

Example Request

curl -X PATCH \
  'https://cms.thepublive.com/publisher/123/media-library/999/' \
  -H 'username: YOUR_API_KEY' \
  -H 'password: YOUR_API_SECRET' \
  -H 'Content-Type: application/json' \
  -d '{"source": "Reuters", "alt_text": "Updated alt text"}'
{
  "status": "success",
  "message": "Updated Successfully",
  "data": {
    "id": 999,
    "filename": "budget-2026.jpg",
    "alt_text": "Updated alt text",
    "caption": "Budget session in Parliament",
    "path": "https://cdn.publive.com/images/budget-2026.jpg",
    "source": "Reuters",
    "type": "Image",
    "meta_data": {"width": 1200, "height": 630}
  }
}