Update a declarative resource.
PATCH /v1/capabilities/declarative/{capability_id}
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Public declarative capability resource ID
Request Body required
Section titled “Request Body required ”object
Replacement declarative definition. Changing name updates the canonical capability ref after uniqueness validation.
object
Optional lifecycle state update. Use disabled to hide from runtime selection without archiving.
Example
disabledResponses
Section titled “ Responses ”Declarative capability updated
Wrapper that adds API and UI links to a serialized resource.
Uses self_url (not url) for the API link to avoid collision with
resources that already have a url field (e.g. McpServer).
object
Runtime capability reference. Agents and harnesses may use this or the plain unique name.
Example
declarative:research_packDeclarative capability payload: system prompt, skills, starter files, MCP servers, and metadata.
object
Short summary shown in pickers, search results, and API listings.
Example
Adds research instructions, starter files, and MCP tools.Human-facing label shown in the UI. Defaults to name when omitted.
Example
Research PackPublic resource ID for this persisted declarative capability.
Example
cap_01933b5a000070008000000000000001Stable unique name used in capability refs. Lowercase letters, numbers, and underscores.
Example
research_packLifecycle state for the resource: active, disabled, archived, or deleted.
Example
activeFull API endpoint URL for this resource.
Alias for view_url, used by command and MCP outputs.
Full UI URL for viewing this resource.
Invalid update payload or declarative capability definition
Standard error response for API endpoints.
object
Error message describing what went wrong.
A declarative capability with the same unique name already exists
Standard error response for API endpoints.
object
Error message describing what went wrong.