Skip to content
Endless Documentation
Custom skills

Update custom skill

PATCH
/skills/{skill_id}

Updates a custom skill and returns the updated row. Scoped to the skill named by skill_id. Send a sparse body — only the fields that changed. Each field is authorized on its own, so resending an unchanged one also demands its permission.

Authorization

headerAuthorizationBearer <esk_live_…>

A workspace API key created in workspace settings. It acts as the member who created it, narrowed to its abilities, projects and credit limit. Each operation names the ability it needs.

Scope: skills:write

Path Parameters

skill_id*string
Formatuuid

Header Parameters

Endless-Api-Version?string

Pin the caller to an API major (1). Omit to accept the current version. A major this deployment cannot serve is refused with 400 unsupported_api_version.

Request Body

application/json
  1. body
name?string
Length1 <= length <= 120
description?string
Length1 <= length <= 1000
body?string
Length1 <= length
files?array<>|null
file?|
file_changes?array<|>
Items1 <= items
color?string
Value in"red""orange""yellow""green""blue""purple""pink""gray"
expected_updated_at?string
Formatdate-time

Response Body

OK

application/json
  1. response
skill*
Example Request
curl -X PATCH 'https://api.endless.app/skills/brand-voice' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "skill": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "codename": "string",    "organization_id": "string",    "source": "built-in",    "name": "string",    "description": "string",    "body": "string",    "files": "string",    "author": "string",    "project_scoped": true,    "visibility": "private",    "workspace_role": "viewer",    "color": "red",    "created_by_id": "string",    "mod_shortcut_id": "string",    "listing_id": "5322d4a9-51d2-4408-82fb-01ffecfb8304",    "listing_version": -2147483648,    "listing_edited_at": "2019-08-24T14:15:22Z",    "copied_from_skill_id": "d0c7598b-b4c6-4427-9a7e-0034297c97e2",    "deleted_at": "2019-08-24T14:15:22Z",    "deleted_by_id": "string",    "created_at": "2019-08-24T14:15:22Z",    "updated_at": "2019-08-24T14:15:22Z"  }}