Add new items to a list. The response returns the items that were newly added (items that were already in the list are not returned).
Default rate limit: 60 requests per minute.
POST
/lists/{listId}
curl \
--request POST 'https://api.lassomoderation.com/api/v1/lists/{listId}' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '"{\n \"items\": [\n \"Bad word\",\n \"other bad word\"\n ]\n}"'
Request example
{
"items": [
"Bad word",
"other bad word"
]
}
Response examples (200)
{
"success": true,
"addedItems": [
"bad word",
"another bad word"
]
}
Response examples (400)
{
"success": false,
"error": {
"content_id": "Value can be at most 100 characters"
}
}
Response examples (401)
{
"success": false,
"error": "Invalid API key"
}
Response examples (404)
{
"success": false,
"error": "List not found"
}
Response examples (429)
{
"error": "Too many requests, check headers for limits"
}