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>"
}
]
}Add a single user to multiple lists in one call
Permission Required: lists:write
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>"
}
]
}Requires a connection via the x-connection-id header.
List IDs to add the user to
1 - 5 elementsList ID
x > 0Was this page helpful?