Sample - OpenAI API
POST/skills/{skill_id}

Update a skill's default version

Updates the default version pointer for a skill. Provide the default_version to select which immutable skill version becomes the skill's default. The response returns the updated skill metadata.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

1 parameter · 1 body field
skill_idstringrequired
The identifier of the skill whose default version you want to update.

Request specifying the skill version to set as the default.

default_versionstringrequired
The skill version number to set as default.

2 status codes
200Returns the updated skill object with its identifier, metadata, default version, and latest version.
idstringrequired
Unique identifier for the skill.
objectstringrequired
The object type, which is `skill`.
Allowed:skillDefault:skill
namestringrequired
Name of the skill.
descriptionstringrequired
Description of the skill.
created_atintegerrequired
Unix timestamp (seconds) for when the skill was created.
default_versionstringrequired
Default version for the skill.
latest_versionstringrequired
Latest version for the skill.
429Returned when the request is rejected because the rate limit has been exceeded.
errorobjectrequired

Error handling

The default_version field is required. skill_id must identify the skill to update, and a 429 is returned when the request exceeds the rate limit.