Saltar para o conteúdo principal
PATCH
/
public
/
api
/
v1
/
agents
/
{agentPublicId}
/
features
/
{featureKey}
Update a single feature
curl --request PATCH \
  --url https://api.gennia.ai/public/api/v1/agents/{agentPublicId}/features/{featureKey} \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '
{
  "config": {
    "present": true
  },
  "enabled": true
}
'
{
  "config": {},
  "enabled": true,
  "label": "<string>"
}

Autorizações

X-Api-Key
string
header
obrigatório

Parâmetros de caminho

agentPublicId
string<uuid>
obrigatório
featureKey
string
obrigatório

Corpo

application/json

Body for toggling an agent feature flag and/or updating its configuration. Fields are tri-state: omit to leave unchanged, set to a value to update, or send null to clear.

config
object

Feature-specific configuration object. Shape depends on the feature key.

enabled
object

Whether the feature is enabled for this agent.

Exemplo:

true

Resposta

OK

Feature toggle + per-feature config.

config
object

Feature-specific config shape; {} for boolean-only features.

enabled
boolean
key
enum<string>

Stable feature key.

Opções disponíveis:
follow-up,
message-splitting,
message-delay,
long-term-memory,
sandbox,
genui,
audio,
web-search
label
string

i18n-resolved display label.