Skip to main content
POST
Create New Group

Create Group

Create a new user group for organizing users and managing access permissions.

Endpoint

Description

This endpoint allows administrators to create new user groups. Groups are used to organize users, manage permissions, and control access to different parts of the system. You can specify the group name, description, and metadata during creation.

Authentication

Required: API Key with admin privileges

Request Body

Example Request

Success Response

Status Code: 201 Created

Response Fields

Example Usage

JavaScript

Python

cURL

Error Responses

400 Bad Request

401 Unauthorized

403 Forbidden

409 Conflict

429 Too Many Requests

Use Cases

  • User Organization: Create groups to organize users by department or function
  • Access Control: Establish groups for managing permissions and access
  • Team Management: Create groups for different teams or projects
  • Reporting: Organize users for reporting and analytics
  • Integration: Create groups for third-party system integration

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
  • Required Fields: Both name and description are required
  • User Assignment: Can assign users to the group during creation
  • Status: Defaults to “Active” if not specified
  • Validation: User IDs are validated before assignment
  • Flat Response: Response is not nested under data object
  • The group is immediately available for use after creation

Autorizações

Authorization
string
header
obrigatório

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

Corpo

application/json
name
string
obrigatório

Group name

Exemplo:

"Engineering Team"

description
string
obrigatório

Group description

Exemplo:

"Software engineering team"

users
string[]

Array of user IDs to add to the group

Exemplo:
status
enum<string>
padrão:Active

Group status

Opções disponíveis:
Active,
Inactive
Exemplo:

"Active"

Resposta

Group created successfully

success
boolean
Exemplo:

true

message
string
Exemplo:

"Group created successfully"

group
object