Skip to main content
PUT
Update Group

Update Group

Update an existing user group with new information, description, or metadata.

Endpoint

Description

This endpoint allows administrators to update an existing user group. You can modify the group name, description, metadata, and other properties. The group must exist and you must have appropriate permissions to update it.

Authentication

Required: API Key with admin privileges

Path Parameters

Request Body

Example Request

Success Response

Status Code: 200 OK

Response Fields

Example Usage

JavaScript

Python

cURL

Error Responses

400 Bad Request

401 Unauthorized

403 Forbidden

404 Not Found

409 Conflict

429 Too Many Requests

Use Cases

  • Group Management: Update group information and descriptions
  • User Assignment: Assign new users to the group
  • Name Changes: Rename groups for better clarity
  • Status Updates: Change group status
  • Team Updates: Update group information when team structure changes

Rate Limits

  • Default: 50 requests per minute
  • Daily: 5,000 requests per day
  • Monthly: 150,000 requests per month

Notes

  • This endpoint is only accessible by administrators
  • Partial Updates: Only include fields you want to change
  • User Assignment: Can assign new users to the group
  • Name Validation: Group names must be unique
  • Flat Response: Response is not nested under data object
  • User Validation: User IDs are validated before assignment
  • The updatedAt timestamp is automatically updated

Authorizations

Authorization
string
header
required

API key authentication using Bearer token format. Example: Authorization: Bearer sk-your-api-key-here

Path Parameters

groupId
string
required

Group ID to update

Body

application/json
name
string

Group name

Example:

"Updated Engineering Team"

description
string

Group description

Example:

"Updated software engineering team"

users
string[]

Array of user IDs to assign to the group

Example:
status
enum<string>

Group status

Available options:
Active,
Inactive
Example:

"Active"

Response

Group updated successfully

success
boolean
Example:

true

message
string
Example:

"Group updated successfully"

group
object