Skip to main content
PATCH
/
organization-skills
/
{skill_id}
Update skill with patch
curl --request PATCH \
  --url https://app.usechar.ai/api/organization-skills/{skill_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "patch": {
    "version": "<unknown>",
    "operations": [
      {
        "type": "<unknown>",
        "before": "<string>",
        "after": "<string>",
        "expectedMatches": 0
      }
    ]
  }
}
'
{
  "success": true,
  "operations_applied": 123
}

Authorizations

Authorization
string
header
required

WorkOS JWT token. Obtain via WorkOS AuthKit authentication flow. The token must include organization_id claim for organization-scoped endpoints.

Path Parameters

skill_id
string<uuid>
required

Skill ID to update

Body

application/json

Input for updating a skill with patch operations

patch
object
required

Patch operations from @char/agent-skills

Response

OK

success
boolean
required
operations_applied
number
required