Update Category

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 /category

Update the name of a category

Headers

application/json

Body

  • category object Required

    Model for a category that a message can be part of. If the category does not yet exist in Lasso it will be created.

    Hide category attributes Show category attributes object
    • id string Required
    • name string Required

      Maximum length is 100.

Responses

  • 200 application/json

    OK

    Hide response attribute Show response attribute object
    • success boolean
PUT /category
curl \
 --request PUT 'https://api.lassomoderation.com/api/v1/category' \
 --header "Content-Type: application/json" \
 --header "Authorization: Bearer lasso.a35afd...a6ea" \
 --data '{"category":{"id":"some-category-id","name":"Updated category name"}}'
Request example
{
  "category": {
    "id": "some-category-id",
    "name": "Updated category name"
  }
}
Response examples (200)
{
  "success": true
}