Skip to main content
POST
/
v2
/
access
/
users
/
:userId
/
lists
Add user to multiple lists
curl --request POST \
  --url https://api-next.ofauth.com/v2/access/users/:userId/lists \
  --header 'Content-Type: application/json' \
  --header 'apiKey: <api-key>' \
  --header 'x-connection-id: <api-key>' \
  --data '
{
  "listIds": [
    1
  ]
}
'
{
  "success": [
    {
      "listId": 123,
      "success": true
    }
  ],
  "errors": [
    {
      "listId": 123,
      "error": "<string>"
    }
  ]
}

Authorizations

apiKey
string
header
required

Your OFAuth API key for authenticating requests.

x-connection-id
string
header
required

Requires a connection via the x-connection-id header.

Path Parameters

userId
string
required

Body

application/json
listIds
integer[]
required

List IDs to add the user to

Required array length: 1 - 5 elements

List ID

Required range: x > 0

Response

Successful response

success
object[]
required
errors
object[]