Update object status

PUT /status

Update the status of content, users or subcategories. This endpoint should only be used if you have actions that change the object's status. Call this endpoint if you want to sync the status of the object(s) with Lasso.

Headers

application/json

Body

Send status updates in bulk by sending a list of IDs, or send a single ID in a list. Optionally, you can send the email of a moderator if you want to attribute the action to this moderator. Otherwise, it will by default attribute it to the API bot.

  • status string Required

    Optional status to set the initial status of the user. This status will only be set when creating the user, not when it is updated. Use the update status API for this.

    Values are allowed, flagged, or hidden.

  • moderator_email string(email)
  • content_ids array[string]
  • subcategory_ids array[string]
  • user_ids array[string]

Responses

  • 200 application/json

    OK

    Hide response attribute Show response attribute object
PUT /status
curl \
 -X PUT https://api.lassomoderation.com/api/v1/status \
 -H "Content-Type: application/json" \
 -H "Authorization: Bearer lasso.a35afd...a6ea" \
 -d '{"status":"hidden","moderator_email":"moderator@example.com","content_ids":["clemwm8ix0007sa8stctcndvj"]}'
Request examples
# Headers
Authorization: Bearer lasso.a35afd...a6ea

# Payload
{
  "status": "hidden",
  "moderator_email": "moderator@example.com",
  "content_ids": [
    "clemwm8ix0007sa8stctcndvj"
  ]
}
# Headers
Authorization: Bearer lasso.a35afd...a6ea

# Payload
{
  "status": "allowed",
  "user_ids": [
    "cleslnvoo0006ukjygou5r4r6"
  ],
  "message_ids": [
    "clf43i7hw00nusax3u298ucmu",
    "clf43i6v600ltsax3mjdko2r1"
  ]
}
Response examples (200)
{
  "success": true
}