SandboxConfig

Update an installed skill

Changed on

Show or hide an installed skill and set the workspace-wide values of the environment variables it declared. Either field may be sent, or both. The files stay in the image either way; removal is a separate flow.

patch/sandbox-configs/{id}/skills/{skillId}

Request

  • Base URL
    /api/v1 (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /api/v1/sandbox-configs/{id}/skills/{skillId}
  • Auth
    • API key in header Authorization
    • or API key in header X-API-Key

Path parameters

idstring required

Sandbox config ID

skillIdstring required

Skill ID from skill.list_installed

Request body

enabledboolean

Enabled shows (true) or hides (false) the skill. Its absence leaves the skill as it is, since a body may carry envs instead.

envsobject

Envs is a pointer to a map because "sent an empty object" and "did not mention envs" are different requests: the first clears what it names, the second must leave every stored value alone.

Response

Updated skill

successboolean

Example response

{
  "success": true
}

Changes