Publish User

PUT /user/publish

Mark the user as published

Headers

application/json

Body

Mark a user as published.

Responses

  • 200 application/json

    OK

    Hide response attribute Show response attribute object
    • success boolean
  • 4XX application/json

    Will return a 400 when the user is already published

    Hide response attributes Show response attributes object
    • success boolean
    • error string
PUT /user/publish
curl \
 --request PUT 'https://api.lassomoderation.com/api/v1/user/publish' \
 --header "Content-Type: application/json" \
 --header "Authorization: Bearer lasso.a35afd...a6ea" \
 --data '{"user_id":"clemwm8ix0007sa8stctcndvj","published_at":"2022-07-21T18:12:39.000Z"}'
Request example
{
  "user_id": "clemwm8ix0007sa8stctcndvj",
  "published_at": "2022-07-21T18:12:39.000Z"
}
Response examples (200)
{
  "success": true
}
Response examples (4XX)
{
  "error": "User already published",
  "success": false
}