Overview
Partially updates a skill. Send only the fields you want to change — all other fields remain unchanged.
Skills use a non-standard base path: /api/v1/tenants/{tenantId}/skills — not /v1/. This is a dedicated module with its own routing prefix.
Required role: admin
JWT Bearer token. Format: Bearer <your-jwt>.
Path parameters
Your tenant identifier. Example: ten_EXAMPLE_ABC123.
The skill identifier. Example: skl_01HX9VTPQR3KF8MZWBYD5N6JCE.
Request body
Updated description. Maximum 500 characters.
Updated execution configuration. Replaces the existing config entirely.
Updated input schema. Replaces the existing inputSchema entirely.
Set to false to disable the skill without deleting it.
Response
Returns 200 OK with the updated skill.
{
"skillId": "skl_01HX9VTPQR3KF8MZWBYD5N6JCE",
"name": "fetch_runbook",
"enabled": false,
"updatedAt": "2024-04-01T12:00:00Z"
}
Error responses
| Status | Error code | Description |
|---|
400 | validation_error | Invalid field value or schema |
401 | unauthorized | Missing or invalid JWT |
403 | forbidden | Caller lacks admin role |
404 | skill_not_found | No skill with the given ID |
Examples
curl https://api.causeflow.ai/api/v1/tenants/ten_EXAMPLE_ABC123/skills/skl_01HX9VTPQR3KF8MZWBYD5N6JCE \
-X PATCH \
-H "Authorization: Bearer eyJhbGc..." \
-H "Content-Type: application/json" \
-d '{ "enabled": false }'
Get skill
View current skill configuration
Delete skill
Permanently remove a skill