Skip to main content
PUT
/
api
/
captain
/
agents
/
{id}
/
connectors
/
{name}
Update connector
curl --request PUT \
  --url http://localhost:63372/api/captain/agents/{id}/connectors/{name} \
  --header 'Content-Type: application/json' \
  --cookie captain_session= \
  --data '
{
  "name": "meepachat",
  "type": "meepachat",
  "meepachat": {
    "url": "wss://chat.example.com/api/bot-gateway",
    "bot_token": "bot.secret"
  },
  "discord": {
    "bot_token": "discord-bot-token",
    "guild_ids": []
  }
}
'
{
  "ok": true
}

Authorizations

captain_session
string
cookie
required

HMAC-signed session cookie returned by /api/captain/auth/login. Valid for 7 days. Invalidated when password changes.

Path Parameters

id
string
required

Agent ID

name
string
required

Connector name

Body

application/json
name
string
required
Example:

"meepachat"

type
string
required
Example:

"meepachat"

meepachat
object
discord
object

Response

Success

ok
boolean
required
Example:

true