Skip to main content
PUT
Create or replace a skill of an uploaded plugin.
Creates a skill in an uploaded plugin in the organization, or replaces it. Use it to keep skills up to date from automation, as the Knowledge notes API did for notes.

Permissions

Requires a service user or personal access token with the ManageOrgPlugins permission for the specified organization. ManageOrgKnowledge or ManageOrgPlaybooks also grants access once the organization’s Knowledge or Playbooks have moved to skills.

Behavior

  • content is the whole SKILL.md, frontmatter included. It is stored at skills/<skill_name>/SKILL.md; the plugin’s other files are left as they are.
  • The plugin must already exist. To create a plugin, upload it or create it in Customize.
  • Without revision_token the write replaces whatever is stored. To avoid overwriting a change you have not seen, send the revision_token you last read: the write is then refused with 409 if the plugin has changed since.
  • Every write changes the plugin’s revision_token, for all of its skills. The response returns the new one.
  • New sessions load the new skill. Running sessions keep what they loaded at start.
  • In an enterprise, the primary organization has no plugins of its own: the request returns 400. Use the matching enterprise endpoint instead.

Status codes

  • 400: the skill name or the SKILL.md is not valid.
  • 403: the caller lacks the permission, uploaded plugins are disabled for the account and the skill does not exist yet, or the plugin is reserved for Devin.
  • 404: no uploaded plugin has this bundle_id.
  • 409: revision_token was sent and the plugin has changed since that revision.

Authorizations

Authorization
string
header
required

Service User credential (prefix: cog_)

Path Parameters

org_id
string
required

Organization ID (prefix: org-)

Example:

"org-abc123def456"

bundle_id
string
required
skill_name
string
required

Body

application/json
content
string
required

The full SKILL.md, frontmatter included.

revision_token
string | null

Only write if the bundle is still at this revision.

Response

Successful Response

bundle_id
string
required
content
string
required

The skill's SKILL.md.

name
string
required
revision_token
string
required

Revision of the bundle holding it.