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

    The status of an object

    Values are allowed, flagged, or hidden.

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

    Can be used when temporarily hidding/banning a user. To ban a user for 2 weeks, set ban_duration to 2 and the ban_duration_period to week.

    Hide temporary attributes Show temporary attributes object
    • ban_duration number
    • ban_duration_period

      Values are hour, day, or week.

    • Additional properties are NOT allowed

Responses

  • 200 application/json

    OK

    Hide response attribute Show response attribute object
    • success boolean
PUT /status
curl \
 --request PUT 'https://api.lassomoderation.com/api/v1/status' \
 --header "Content-Type: application/json" \
 --header "Authorization: Bearer lasso.a35afd...a6ea" \
 --data '{"status":"hidden","content_ids":["clemwm8ix0007sa8stctcndvj"],"moderator_email":"moderator@example.com"}'
Request examples
{
  "status": "hidden",
  "content_ids": [
    "clemwm8ix0007sa8stctcndvj"
  ],
  "moderator_email": "moderator@example.com"
}
{
  "status": "allowed",
  "user_ids": [
    "cleslnvoo0006ukjygou5r4r6"
  ],
  "message_ids": [
    "clf43i7hw00nusax3u298ucmu",
    "clf43i6v600ltsax3mjdko2r1"
  ]
}
Response examples (200)
{
  "success": true
}