---
title: "Update Skill Default Version"
method: POST
path: "/skills/{skill_id}"
tags: ["Skills"]
---

# Update Skill Default Version

`POST /skills/{skill_id}`

## Request

- Base URL: `https://api.openai.com/v1`
- URL: `https://api.openai.com/v1/skills/{skill_id}`
- Auth: HTTP bearer

Update the default version pointer for a skill.

## Path parameters

- `skill_id` string, required

## Request body

- SetDefaultSkillVersionBody: Updates the default version pointer for a skill.
  - `default_version` string, required: The skill version number to set as default.

## Response `200`

Success

- SkillResource
  - `id` string, required: Unique identifier for the skill.
  - `object` 'skill', required: The object type, which is `skill`.
  - `name` string, required: Name of the skill.
  - `description` string, required: Description of the skill.
  - `created_at` integer, required: Unix timestamp (seconds) for when the skill was created.
  - `default_version` string, required: Default version for the skill.
  - `latest_version` string, required: Latest version for the skill.

## Other responses

- `400`: The requested version is invalid.
- `404`: The skill or requested skill version was not found.
- `429`: The request was rejected because a rate limit was exceeded.

## Changes

- **2026-10-06** `487892d3954e`: 3 info
  - added the optional property `error/misalignment/review_target` to the response with the `400` status
  - added the optional property `error/misalignment/review_target` to the response with the `404` status
  - added the optional property `error/misalignment/review_target` to the response with the `429` status
- **2026-10-05** `7f654af7f94f`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/omnistack-sh/apis/openai-api/changes/skills/:skill_id/post.md)

---

[API](https://skmtc.dev/omnistack-sh/apis/openai-api.md) - [All operations](https://skmtc.dev/omnistack-sh/apis/openai-api/llms.txt) - [OpenAPI document](https://skmtc.dev/omnistack-sh/apis/openai-api/revisions/0a26f104d35f?raw)
