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.Additional properties are NOT allowed.
-
The id of the policy that is used for the status change
-
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 '"{\n \"status\": \"hidden\",\n \"moderator_email\": \"moderator@example.com\",\n \"content_ids\": [\n \"clemwm8ix0007sa8stctcndvj\"\n ]\n}"'
{
"status": "hidden",
"moderator_email": "moderator@example.com",
"content_ids": [
"clemwm8ix0007sa8stctcndvj"
]
}
{
"status": "allowed",
"user_ids": [
"cleslnvoo0006ukjygou5r4r6"
],
"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"
}