Update content metadata

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://api-reference.lassomoderation.com/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
{
  "Lasso Moderation API MCP server": {
    "url": "https://api-reference.lassomoderation.com/mcp"
  }
}

Close
PUT /content/metadata

Update the metadata of content without creating a new version of the content. The metadata is merged with the content's existing metadata; setting a key to null removes it. The response returns the content's full metadata after the update.

Default rate limit: 60 requests per minute.

application/json

Body

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

  • content_id string Required

    Maximum length is 100.

  • metadata object | null Required

    Extra free-form data about the object as key-value pairs. Values can be strings, numbers, booleans, null, or an object with one more level of key-value pairs.

    • The metadata may be at most 4KB (4096 bytes) when serialized as JSON.
    • Keys are not allowed to contain /.

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
    • success boolean Required
    • metadata object | null Required

      Extra free-form data about the object as key-value pairs. Values can be strings, numbers, booleans, null, or an object with one more level of key-value pairs.

      • The metadata may be at most 4KB (4096 bytes) when serialized as JSON.
      • Keys are not allowed to contain /.
  • 400 application/json

    The request is invalid, see the error field for details

    Hide response attributes Show response attributes object
    • success boolean Required
    • error string | object Required

      A message describing the error. For validation errors this is an object with an error message per field.

  • 401 application/json

    The API token is missing or invalid

    Hide response attributes Show response attributes object
    • success boolean Required
    • error string | object Required

      A message describing the error. For validation errors this is an object with an error message per field.

  • 404 application/json

    Returned when the content is not found

    Hide response attributes Show response attributes object
    • success boolean Required
    • error string | object Required

      A message describing the error. For validation errors this is an object with an error message per field.

  • 429 application/json

    The rate limit has been exceeded, check the X-RateLimit headers for limits

    Hide headers attributes Show headers attributes
    • X-RateLimit-Limit

      The rate limit interval in milliseconds

    • X-RateLimit-Remaining

      The number of requests remaining in the current interval

    • X-RateLimit-Reset

      The number of milliseconds until requests are allowed again

    Hide response attribute Show response attribute object
    • error string Required
PUT /content/metadata
curl \
 --request PUT 'https://api.lassomoderation.com/api/v1/content/metadata' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '"{\n  \"content_id\": \"clemwm8ix0007sa8stctcndvj\",\n  \"metadata\": {\n    \"likes\": 12,\n    \"replies\": 4\n  }\n}"'
Request example
{
  "content_id": "clemwm8ix0007sa8stctcndvj",
  "metadata": {
    "likes": 12,
    "replies": 4
  }
}
Response examples (200)
{
  "success": true,
  "metadata": {
    "likes": 12,
    "replies": 4
  }
}
Response examples (400)
{
  "success": false,
  "error": {
    "content_id": "Value can be at most 100 characters"
  }
}
Response examples (401)
{
  "success": false,
  "error": "Invalid API key"
}
Response examples (404)
{
  "success": false,
  "error": "Content not found"
}
Response examples (429)
{
  "error": "Too many requests, check headers for limits"
}