Saltar para o conteúdo principal
POST
/
public
/
api
/
v1
/
agents
/
{agentPublicId}
/
skills
Link a skill to the agent
curl --request POST \
  --url https://api.gennia.ai/public/api/v1/agents/{agentPublicId}/skills \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '
{
  "skillPublicId": "9c3a4d22-1a8d-4b3f-9b1e-7a0f0c4f3e21"
}
'
{
  "active": true,
  "skillName": "<string>",
  "skillPublicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Autorizações

X-Api-Key
string
header
obrigatório

Parâmetros de caminho

agentPublicId
string<uuid>
obrigatório

Corpo

application/json

Body for linking an existing skill to an agent.

skillPublicId
string<uuid>
obrigatório

Public ID of the skill to link to the agent.

Exemplo:

"9c3a4d22-1a8d-4b3f-9b1e-7a0f0c4f3e21"

Resposta

Skill linked

Skill linked to an agent.

active
boolean
skillName
string
skillPublicId
string<uuid>