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.
IDs that don't exist in Lasso are silently ignored. Updating the status of content that already has a newer version returns a 400 error.
Default rate limit: 300 requests per minute.
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. -
Maximum length of each is
100. -
Maximum length of each is
100. -
Maximum length of each is
100. -
Can be used when temporarily hiding/banning a user. To ban a user for 2 weeks, set
ban_durationto2and theban_duration_periodtoweek. Only applied when setting users tohidden. For a user who is already hidden, the latest request replaces the current ban. Withouttemporarythe ban becomes permanent, withtemporaryit ends after the new duration. Re-sending a ban of the same duration changes nothing and does not restart it.Additional properties are NOT allowed.
-
The id of the policy that is used for the status change
-
What the content status changes are a decision about. Use
accountwhen you remove content because you removed or banned its author, not because of the content itself. The content gets the new status, but it is left out of false positives and false negatives in the dashboard and analytics. A later status change withoutaccountmakes it a content decision again. Only applies tocontent_ids.Values are
contentoraccount. Default value iscontent. -
Required when updating subcategories
curl \
--request PUT 'https://api.lassomoderation.com/api/v1/status' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"status": "hidden",
"moderator_email": "moderator@example.com",
"content_ids": [
"clemwm8ix0007sa8stctcndvj"
]
}'
{
"status": "hidden",
"moderator_email": "moderator@example.com",
"content_ids": [
"clemwm8ix0007sa8stctcndvj"
]
}
{
"status": "allowed",
"user_ids": [
"cleslnvoo0006ukjygou5r4r6"
],
"content_ids": [
"clf43i7hw00nusax3u298ucmu",
"clf43i6v600ltsax3mjdko2r1"
]
}
{
"status": "hidden",
"scope": "account",
"content_ids": [
"clf43i7hw00nusax3u298ucmu",
"clf43i6v600ltsax3mjdko2r1"
]
}
{
"status": "hidden",
"user_ids": [
"cleslnvoo0006ukjygou5r4r6"
],
"policy_id": "harassment",
"temporary": {
"ban_duration": 2,
"ban_duration_period": "week"
}
}
{
"success": true
}
{
"success": false,
"error": {
"content_id": "Value can be at most 100 characters"
}
}
{
"success": false,
"error": "Invalid API key"
}
{
"error": "Too many requests, check headers for limits"
}