REST APIs
- Organizations
- Folders
- Documents
- Users
- Organization User Groups
- Comments Feature
- Notifications
- Live State
- Workspace
SDK
- APIs
- Models
Organization User Groups
Delete Users from Groups
POST
/
v1
/
organizations
/
usergroups
/
users
/
delete
Copy
Ask AI
curl --request POST \
--url https://api.velt.dev/v1/organizations/usergroups/users/delete \
--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>"
],
"deleteAll": true
}
}'
Copy
Ask AI
{
"result": {
"status": "success",
"message": "Deleted users from group successfully.",
"data": {
"yourUserId1": {
"success": true,
"organizationUserGroupId": "yourGroupId",
"message": "User deleted from organization user group."
}
}
}
}
Use this API to delete users from a specific organization user group.
Endpoint
POST https://api.velt.dev/v1/organizations/usergroups/users/delete
Headers
Your API key.
Your Auth Token.
Body
Params
Example Requests
Delete specific users from group
Copy
Ask AI
{
"data": {
"organizationId": "yourOrganizationId",
"organizationUserGroupId": "yourGroupId",
"userIds": ["yourUserId1"]
}
}
Delete all users from group
Copy
Ask AI
{
"data": {
"organizationId": "yourOrganizationId",
"organizationUserGroupId": "yourGroupId",
"deleteAll": true
}
}
Response
Success Response
Copy
Ask AI
{
"result": {
"status": "success",
"message": "Deleted users from group successfully.",
"data": {
"yourUserId1": {
"success": true,
"organizationUserGroupId": "yourGroupId",
"message": "User deleted from organization user group."
}
}
}
}
Failure Response
Copy
Ask AI
{
"error": {
"message": "ERROR_MESSAGE",
"status": "INVALID_ARGUMENT"
}
}
Copy
Ask AI
{
"result": {
"status": "success",
"message": "Deleted users from group successfully.",
"data": {
"yourUserId1": {
"success": true,
"organizationUserGroupId": "yourGroupId",
"message": "User deleted from organization user group."
}
}
}
}
Was this page helpful?
Copy
Ask AI
curl --request POST \
--url https://api.velt.dev/v1/organizations/usergroups/users/delete \
--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>"
],
"deleteAll": true
}
}'
Copy
Ask AI
{
"result": {
"status": "success",
"message": "Deleted users from group successfully.",
"data": {
"yourUserId1": {
"success": true,
"organizationUserGroupId": "yourGroupId",
"message": "User deleted from organization user group."
}
}
}
}
Assistant
Responses are generated using AI and may contain mistakes.