Update object 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.
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.
-
The status of an object
Values are
allowed
,flagged
, orhidden
. -
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
to2
and theban_duration_period
toweek
.
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","content_ids":["clemwm8ix0007sa8stctcndvj"],"moderator_email":"moderator@example.com"}'
Request examples
Example 1
{
"status": "hidden",
"content_ids": [
"clemwm8ix0007sa8stctcndvj"
],
"moderator_email": "moderator@example.com"
}
{
"status": "allowed",
"user_ids": [
"cleslnvoo0006ukjygou5r4r6"
],
"message_ids": [
"clf43i7hw00nusax3u298ucmu",
"clf43i6v600ltsax3mjdko2r1"
]
}
Response examples (200)
{
"success": true
}