Add list items

POST /lists/{listId}

Add new items to a list

Headers

Path parameters

  • listId string Required

    The id of the list

application/json

Body

Responses

POST /lists/{listId}
curl \
 -X POST https://api.lassomoderation.com/api/v1/lists/{listId} \
 -H "Content-Type: application/json" \
 -H "Authorization: Bearer lasso.a35afd...a6ea" \
 -d '{"items":["Bad word","other bad word"]}'
Request example
# Headers
Authorization: Bearer lasso.a35afd...a6ea

# Payload
{
  "items": [
    "Bad word",
    "other bad word"
  ]
}
Response examples (200)
{
  "success": true,
  "addedItems": [
    "bad word",
    "another bad word"
  ]
}