PUT /content/metadata

Update the metadata of content without creating a new version of the content

Headers

application/json

Body

Update the metadata of content without creating a new version of the content

  • content_id string Required
  • metadata object Required

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
    • success boolean Required
    • metadata object Required
  • 4XX application/json

    Will return a 400 when the content is already published

    Hide response attributes Show response attributes object
    • success boolean
    • error string
PUT /content/metadata
curl \
 --request PUT 'https://api.lassomoderation.com/api/v1/content/metadata' \
 --header "Content-Type: application/json" \
 --header "Authorization: Bearer lasso.a35afd...a6ea" \
 --data '{"metadata":{"likes":12,"replies":4},"content_id":"clemwm8ix0007sa8stctcndvj"}'
Request example
{
  "metadata": {
    "likes": 12,
    "replies": 4
  },
  "content_id": "clemwm8ix0007sa8stctcndvj"
}
Response examples (200)
{
  "success": true
}
Response examples (4XX)
{
  "error": "User already published",
  "success": false
}