Organization User Groups
Add Users to Groups
REST APIs
- Organizations
- Folders
- Documents
- Locations
- Users
- Organization User Groups
- Comments Feature
- Notifications
- Live State
SDK
- APIs
- Models
Organization User Groups
Add Users to Groups
POST
/
v1
/
organizations
/
usergroups
/
users
/
add
curl --request POST \
--url https://api.velt.dev/v1/organizations/usergroups/users/add \
--header 'Content-Type: application/json' \
--header 'x-velt-api-key: <x-velt-api-key>' \
--header 'x-velt-auth-token: <x-velt-auth-token>' \
--data '{
"data": {
"organizationId": "<string>",
"organizationUserGroupId": "<string>",
"userIds": [
"<string>"
]
}
}'
{
"result": {
"status": "success",
"message": "Added organization users to group successfully.",
"data": {
"yourUserId1": {
"success": true,
"organizationUserGroupId": "yourGroupId",
"message": "User added to organization user group."
}
}
}
}
Use this API to add users to a specific organization user group.
Endpoint
POST https://api.velt.dev/v1/organizations/usergroups/users/add
Headers
Your API key.
Your Auth Token.
Body
Params
Example Requests
{
"data": {
"organizationId": "yourOrganizationId",
"organizationUserGroupId": "yourGroupId",
"userIds": ["yourUserId1"]
}
}
Response
Success Response
{
"result": {
"status": "success",
"message": "Added organization users to group successfully.",
"data": {
"yourUserId1": {
"success": true,
"organizationUserGroupId": "yourGroupId",
"message": "User added to organization user group."
}
}
}
}
Failure Response
{
"error": {
"message": "ERROR_MESSAGE",
"status": "INVALID_ARGUMENT"
}
}
{
"result": {
"status": "success",
"message": "Added organization users to group successfully.",
"data": {
"yourUserId1": {
"success": true,
"organizationUserGroupId": "yourGroupId",
"message": "User added to organization user group."
}
}
}
}
Was this page helpful?
curl --request POST \
--url https://api.velt.dev/v1/organizations/usergroups/users/add \
--header 'Content-Type: application/json' \
--header 'x-velt-api-key: <x-velt-api-key>' \
--header 'x-velt-auth-token: <x-velt-auth-token>' \
--data '{
"data": {
"organizationId": "<string>",
"organizationUserGroupId": "<string>",
"userIds": [
"<string>"
]
}
}'
{
"result": {
"status": "success",
"message": "Added organization users to group successfully.",
"data": {
"yourUserId1": {
"success": true,
"organizationUserGroupId": "yourGroupId",
"message": "User added to organization user group."
}
}
}
}