Skip to main content
PATCH
/
api
/
groups
/
{id}
Update group
curl --request PATCH \
  --url http://localhost/api/api/groups/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "users": [
    123
  ],
  "permissions": [
    123
  ]
}
'
{
  "id": 123,
  "name": "<string>",
  "users": [
    123
  ],
  "permissions": [
    123
  ],
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Documentation Index

Fetch the complete documentation index at: https://docs.cynopsis.co/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

JWT token obtained from AWS Cognito or custom authentication service

Path Parameters

id
integer
required

A unique integer value identifying this group.

Body

application/json
name
string

Group name

users
integer[]

List of user IDs

permissions
integer[]

List of permission IDs

Response

Group updated successfully

Group object with all details

id
integer
required

Group ID

name
string
required

Group name

users
integer[]

List of user IDs in this group

permissions
integer[]

List of permission IDs for this group

created_at
string<date-time>

Group creation timestamp

updated_at
string<date-time>

Group last update timestamp