Skip to content
Select themeSelect language

PATCH `/settings/agent-capabilities/{kind}/{name}` — replace the full config (skill editor). Routes built-in vs custom in the service.

PATCH
/api/settings/agent-capabilities/{kind}/{name}
curl --request PATCH \
--url https://example.com/api/settings/agent-capabilities/example/example \
--header 'Content-Type: application/json' \
--data '{ "config": "example", "description": "example", "enabled": true, "label": "example" }'
kind
required
string

Capability kind (e.g. mcp or skill)

name
required
string

Capability name

Media typeapplication/json

Full-config replace body for the skill editor: the whole intended config is mandatory so a built-in’s instructions aren’t clobbered by the catalog.

object
config
required
description
string | null
enabled
required
boolean
label
string | null
Examplegenerated
{
"config": "example",
"description": "example",
"enabled": true,
"label": "example"
}
Media typeapplication/json
object
builtin
required
boolean
config
required
description
required
string
enabled
required
boolean
kind
required
string
label
required
string
name
required
string
Examplegenerated
{
"builtin": true,
"config": "example",
"description": "example",
"enabled": true,
"kind": "example",
"label": "example",
"name": "example"
}

Structured client error

Media typeapplication/json

The canonical JSON body of every error response — the single source of truth the frontend binds to. Every AppError serializes as this exact shape, and the generated OpenAPI component ApiErrorBody (with its ErrorCode enum) is what the frontend error schema is generated from, so there is no hand-written error schema on either end.

object
code
required

Machine-readable, stable error code.

string
Allowed values: not_found unauthorized forbidden bad_request unprocessable precondition_failed conflict method_not_allowed rate_limited quota_exceeded database_error docker_error vault_error internal_error
details
One of:
null
error
required

Human-readable message (the server’s English text; the client may localize by code).

string
Example
{
"code": "not_found"
}

Authentication required

Media typeapplication/json

The canonical JSON body of every error response — the single source of truth the frontend binds to. Every AppError serializes as this exact shape, and the generated OpenAPI component ApiErrorBody (with its ErrorCode enum) is what the frontend error schema is generated from, so there is no hand-written error schema on either end.

object
code
required

Machine-readable, stable error code.

string
Allowed values: not_found unauthorized forbidden bad_request unprocessable precondition_failed conflict method_not_allowed rate_limited quota_exceeded database_error docker_error vault_error internal_error
details
One of:
null
error
required

Human-readable message (the server’s English text; the client may localize by code).

string
Example
{
"code": "not_found"
}

Permission denied

Media typeapplication/json

The canonical JSON body of every error response — the single source of truth the frontend binds to. Every AppError serializes as this exact shape, and the generated OpenAPI component ApiErrorBody (with its ErrorCode enum) is what the frontend error schema is generated from, so there is no hand-written error schema on either end.

object
code
required

Machine-readable, stable error code.

string
Allowed values: not_found unauthorized forbidden bad_request unprocessable precondition_failed conflict method_not_allowed rate_limited quota_exceeded database_error docker_error vault_error internal_error
details
One of:
null
error
required

Human-readable message (the server’s English text; the client may localize by code).

string
Example
{
"code": "not_found"
}

Structured server error

Media typeapplication/json

The canonical JSON body of every error response — the single source of truth the frontend binds to. Every AppError serializes as this exact shape, and the generated OpenAPI component ApiErrorBody (with its ErrorCode enum) is what the frontend error schema is generated from, so there is no hand-written error schema on either end.

object
code
required

Machine-readable, stable error code.

string
Allowed values: not_found unauthorized forbidden bad_request unprocessable precondition_failed conflict method_not_allowed rate_limited quota_exceeded database_error docker_error vault_error internal_error
details
One of:
null
error
required

Human-readable message (the server’s English text; the client may localize by code).

string
Example
{
"code": "not_found"
}