Update a skill Technical Preview; added in 9.4.0

PUT /api/agent_builder/skills/{skillId}

Spaces method and path for this operation:

put /s/{space_id}/api/agent_builder/skills/{skillId}

Refer to Spaces for more information.

Update an existing user-created skill.

[Required authorization] Route required privileges: manage_agent_builder.

Headers

  • kbn-xsrf string Required

    A required header to protect against CSRF attacks

Path parameters

  • skillId string Required

    The unique identifier of the skill.

application/json

Body

  • content string

    Updated skill instructions content.

  • description string

    Updated description.

  • name string

    Updated name for the skill.

  • referenced_content array[object]

    Not more than 20 elements.

    Hide referenced_content attributes Show referenced_content attributes object
    • content string Required

      Content of the reference.

    • name string Required

      Name of the referenced content.

    • relativePath string Required

      Relative path of the referenced content.

  • tool_ids array[string]

    Updated tool IDs from the tool registry.

    Not more than 5 elements.

PUT /api/agent_builder/skills/{skillId}
curl \
 --request PUT 'https://localhost:5601/api/agent_builder/skills/{skillId}' \
 --header "Authorization: $API_KEY" \
 --header "Content-Type: application/json" \
 --header "kbn-xsrf: true" \
 --data '{"content":"string","description":"string","name":"string","referenced_content":[{"content":"string","name":"string","relativePath":"string"}],"tool_ids":["string"]}'