Skip to content

Create an agent group (name, slug and optional workspace scope)

POST
/v1/agent-groups
curl --request POST \
--url https://example.com/v1/agent-groups \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "description": "example", "metadata": {}, "name": "example", "slug": "example", "status": "active", "workspace_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }'

Creates an agent group from a name and a slug ([a-z0-9][a-z0-9-]*, max 63), with an optional workspace scope that is deny-closed against unknown workspaces.

X-Olivares-Tenant
string format: uuid

Target tenant id; required when the principal can act in more than one tenant.

Media type application/json
object
description
string
metadata
object
key
additional properties
any
name
required
string
>= 1 characters
slug
required
string
<= 63 characters /^[a-z0-9][a-z0-9-]*$/
status
string
Allowed values: active inactive
workspace_id
string format: uuid

Created

Media type application/json
object
created_at
required
string format: date-time
description
string
id
required
string format: uuid
metadata
object
key
additional properties
any
name
required
string
slug
required

The stable scope handle ([a-z0-9][a-z0-9-]*, max 63).

string
status
required
string
Allowed values: active inactive
tenant_id
required
string format: uuid
updated_at
required
string format: date-time
version
required
integer format: int64
workspace_id

The group’s workspace scope; absent when tenant-wide.

string format: uuid
Example
{
"status": "active"
}

Bad request

Media type application/json
object
error
required
object
code
required
string
message
required
string
module

With code module_not_enabled: the namespace of the module this node does not run.

string
Example generated
{
"error": {
"code": "example",
"message": "example",
"module": "example"
}
}

Unauthenticated

Media type application/json
object
error
required
object
code
required
string
message
required
string
module

With code module_not_enabled: the namespace of the module this node does not run.

string
Example generated
{
"error": {
"code": "example",
"message": "example",
"module": "example"
}
}

Forbidden

Media type application/json
object
error
required
object
code
required
string
message
required
string
module

With code module_not_enabled: the namespace of the module this node does not run.

string
Example generated
{
"error": {
"code": "example",
"message": "example",
"module": "example"
}
}

Not found

Media type application/json
object
error
required
object
code
required
string
message
required
string
module

With code module_not_enabled: the namespace of the module this node does not run.

string
Example generated
{
"error": {
"code": "example",
"message": "example",
"module": "example"
}
}

Conflict / setup required

Media type application/json
object
error
required
object
code
required
string
message
required
string
module

With code module_not_enabled: the namespace of the module this node does not run.

string
Example generated
{
"error": {
"code": "example",
"message": "example",
"module": "example"
}
}

Rate limited

Media type application/json
object
error
required
object
code
required
string
message
required
string
module

With code module_not_enabled: the namespace of the module this node does not run.

string
Example generated
{
"error": {
"code": "example",
"message": "example",
"module": "example"
}
}