Saltar para o conteúdo principal
PATCH
/
public
/
api
/
v1
/
skills
/
{skillPublicId}
Rename / update skill metadata (name, description)
curl --request PATCH \
  --url https://api.gennia.ai/public/api/v1/skills/{skillPublicId} \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '
{
  "description": "Guides a new customer through the onboarding workflow.",
  "name": "Customer onboarding"
}
'
{
  "allowedTools": "<string>",
  "compatibility": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "description": "<string>",
  "files": [
    {
      "binary": true,
      "path": "<string>",
      "sizeBytes": 123
    }
  ],
  "license": "<string>",
  "metadata": {},
  "name": "<string>",
  "publicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Autorizações

X-Api-Key
string
header
obrigatório

Parâmetros de caminho

skillPublicId
string<uuid>
obrigatório

Corpo

application/json

Body for updating an existing skill. All fields are optional; only provided fields are updated.

description
string

New short description of what the skill does and when to use it.

Maximum string length: 1024
Exemplo:

"Guides a new customer through the onboarding workflow."

name
string

New display name of the skill.

Required string length: 1 - 64
Exemplo:

"Customer onboarding"

Resposta

OK

Workspace-uploaded skill. Content is immutable post-upload.

allowedTools
string
compatibility
string
createdAt
string<date-time>
description
string
files
object[]
license
string
metadata
object
name
string
publicId
string<uuid>
updatedAt
string<date-time>