Search Documentation

Search API endpoints, webhooks, tools, and guides

On this page6 sections
Is this helpful?
Quick Actions
Download OpenAPI.json
POST/api/user-groups/update-user-groupUser GroupsPermission: user_groups.update

Update User Group

Updates an existing user group's outlet assignments and scoped modules, then invalidates affected users' outlet/scope caches.

Authentication: Requires Authorization: Bearer <ACCESS_TOKEN> (Supabase JWT, OAuth2 M2M token, or integration token).

Request

Provide the following fields in the request payload.

Body application/json
namestringoptional

name parameter.

descriptionstring | nulloptional

description parameter.

outletIdsarray<string (uuid)>optional

outlet Ids parameter.

dataScopeenum('all' | 'restricted')optionaldefault: restricted

data Scope parameter.

scopedModulesstringoptionaldefault:

scoped Modules parameter.

idstring (uuid)required

id parameter.

Responses

Select a status code to inspect schema.

OK — User group updated successfully.application/json
successenum('true')

Success (true).

messagestring

Message.

dataobject | null

Response payload or null.

POST/api/user-groups/update-user-group
curl -X POST "https://api.invoger.com/api/user-groups/update-user-group" \
  -H "Authorization: Bearer <ACCESS_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{ "id": "g1a2b3c4-d5e6-7f8a-9b0c-1d2e3f4a5b6c", "name": "Senopati & Kemang Team", "dataScope": "restricted" }'
Interactive playground

Response

application/json
{
  "success": true,
  "message": "Success",
  "data": {
    "id": "g1a2b3c4-d5e6-7f8a-9b0c-1d2e3f4a5b6c",
    "name": "Senopati & Kemang Team"
  }
}