Skip to content

Create group

POST/organization/groups

Creates a new group in the organization.

Body ParametersJSONExpand Collapse
name: string

Human readable name for the group.

minLength1
maxLength255
ReturnsExpand Collapse
id: string

Identifier for the group.

created_at: number

Unix timestamp (in seconds) when the group was created.

formatint64
is_scim_managed: boolean

Whether the group is managed through SCIM and controlled by your identity provider.

name: string

Display name of the group.

Create group

curl https://api.openai.com/v1/organization/groups \
    -H 'Content-Type: application/json' \
    -H "Authorization: Bearer $OPENAI_API_KEY" \
    -d '{
          "name": "x"
        }'
{
  "id": "id",
  "created_at": 0,
  "is_scim_managed": true,
  "name": "name"
}
Returns Examples
{
  "id": "id",
  "created_at": 0,
  "is_scim_managed": true,
  "name": "name"
}