Update Category

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
PUT /category
curl \
 -X PUT https://api.lassomoderation.com/api/v1/category \
 -H "Content-Type: application/json" \
 -H "Authorization: Bearer lasso.a35afd...a6ea" \
 -d '{"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
}