Skip to main content
PATCH
/
public-api
/
skills
/
{skill_id}
Edit part of a skill's file
curl --request PATCH \
  --url https://api.neoagent.io/public-api/skills/{skill_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "base_hash": "sha256:7c1f...",
  "edits": [
    {
      "file_id": "a91f0000-0000-0000-0000-000000000000",
      "new_string": "    if matched and matched.active:  # skip archived",
      "old_string": "    if matched:",
      "replace_all": false
    }
  ]
}
'
{
  "data": {
    "description": "<string>",
    "files": [
      {
        "content": "<string>",
        "id": "<string>",
        "path": "<string>",
        "version": 123
      }
    ],
    "id": "<string>",
    "name": "<string>",
    "slug": "<string>",
    "source_run_id": "<string>",
    "updated_at": "<string>"
  },
  "meta": {
    "request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "timings_ms": {},
    "pagination": {
      "has_more": true,
      "next_cursor": "<string>"
    },
    "warnings": [
      "<string>"
    ]
  }
}

Authorizations

Authorization
string
header
required

Authorization: Bearer <token> where <token> is either a neo_sk_<env>_<secret> API key (service account) or a Microsoft Entra ID access token (dashboard user).

Path Parameters

skill_id
string
required

Body

application/json

PATCH — surgical search/replace edits to part of a file (the default for a tweak).

edits
PatchEdit · object[]
required
base_hash
string | null

Response

Success.

data
PublicSkill · object
required

A tenant skill read whole — the row plus the latest version of each file.

meta
object
required