Skip to main content
POST
/
api
/
v1
/
agents
/
teams
Add team
curl --request POST \
  --url http://localhost:3000/api/v1/agents/teams \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "description": "<string>"
}
'
{
  "ok": true,
  "data": {
    "added": true
  }
}

Authorizations

Authorization
string
header
required

API key passed as a Bearer token. Configure via the apiKeys field in polpo.json or the POLPO_API_KEY environment variable.

Body

application/json
name
string
required
Minimum string length: 1
description
string

Response

201 - application/json

Team added

ok
boolean
required
data
object
required