curl --request POST \
--url https://api-next.ofauth.com/v2/access/users/lists \
--header 'Content-Type: application/json' \
--header 'apiKey: <api-key>' \
--header 'x-connection-id: <api-key>' \
--data '
{
"name": "<string>"
}
'{
"id": "<string>",
"type": "<string>",
"name": "<string>",
"sortList": [
{
"order": "<string>",
"direction": "<string>"
}
],
"users": [
{
"id": 123,
"username": "<string>",
"name": "<string>",
"isVerified": true,
"avatar": "<string>",
"avatarThumbs": {
"c50": "<string>",
"c144": "<string>"
}
}
],
"usersCount": 123,
"postsCount": 123,
"order": "<string>",
"direction": "<string>",
"canUpdate": true,
"canDelete": true,
"canManageUsers": true,
"canAddUsers": true,
"canPinnedToFeed": true,
"isPinnedToFeed": true,
"canPinnedToChat": true,
"isPinnedToChat": true
}Create user list
Permission Required: lists:write
curl --request POST \
--url https://api-next.ofauth.com/v2/access/users/lists \
--header 'Content-Type: application/json' \
--header 'apiKey: <api-key>' \
--header 'x-connection-id: <api-key>' \
--data '
{
"name": "<string>"
}
'{
"id": "<string>",
"type": "<string>",
"name": "<string>",
"sortList": [
{
"order": "<string>",
"direction": "<string>"
}
],
"users": [
{
"id": 123,
"username": "<string>",
"name": "<string>",
"isVerified": true,
"avatar": "<string>",
"avatarThumbs": {
"c50": "<string>",
"c144": "<string>"
}
}
],
"usersCount": 123,
"postsCount": 123,
"order": "<string>",
"direction": "<string>",
"canUpdate": true,
"canDelete": true,
"canManageUsers": true,
"canAddUsers": true,
"canPinnedToFeed": true,
"isPinnedToFeed": true,
"canPinnedToChat": true,
"isPinnedToChat": true
}Requires a connection via the x-connection-id header.
Name for the new user list
1 - 100Successful response
Show child attributes
Show child attributes
Was this page helpful?