PUT
/
agents
/
{id}
Update an existing Agent
curl --request PUT \
  --url https://core.ravenna.ai/api/agents/{id} \
  --header 'Content-Type: application/json' \
  --header 'x-ravenna-api-token: <api-key>' \
  --data '{
  "name": "<string>",
  "description": "<string>",
  "imageUrl": "<string>",
  "image": {
    "base64": "<string>",
    "fileName": "<string>"
  },
  "enabled": true,
  "respondOnMessage": "all-messages",
  "respondOnMention": true,
  "autoClassify": true,
  "autoTag": true,
  "slackChannelIds": [
    "<string>"
  ],
  "queueIds": [
    "<string>"
  ],
  "kbIds": [
    "<string>"
  ],
  "requestTypeIds": [
    "<string>"
  ]
}'
{
  "id": "<string>",
  "name": "<string>",
  "description": "<string>",
  "imageUrl": "<string>",
  "workspaceId": "<string>",
  "personalityId": "<string>",
  "enabled": true,
  "respondOnMessage": "<string>",
  "respondOnMention": true,
  "autoClassify": true,
  "autoTag": true,
  "workspace": {
    "id": "<string>",
    "slug": "<string>",
    "name": "<string>"
  },
  "personality": {
    "id": "<string>",
    "persona": "<string>",
    "tone": "<string>",
    "emoji": "<string>",
    "length": "<string>",
    "greeting": "<string>",
    "branding": "<string>"
  },
  "slackChannels": [
    {
      "id": "<string>",
      "channelName": "<string>"
    }
  ],
  "queues": [
    {
      "id": "<string>",
      "name": "<string>",
      "prefix": "<string>"
    }
  ],
  "kBs": [
    {
      "id": "<string>",
      "name": "<string>"
    }
  ],
  "requestTypes": [
    {
      "id": "<string>",
      "name": "<string>"
    }
  ],
  "createdAt": "<string>",
  "updatedAt": "<string>",
  "deletedAt": "<string>"
}

Authorizations

x-ravenna-api-token
string
header
required

Path Parameters

id
string
required

Body

application/json

Response

200
application/json

Successful response

The response is of type object.