Skip to content
For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to the page URL.
Primary navigation

Update Skill Default Version

Skill skills().update(params, requestOptions = RequestOptions.none())
POST
/skills/{skill_id}

Update the default version pointer for a skill.

Update Skill Default Version

package com.openai.example;

import com.openai.client.OpenAIClient;
import com.openai.client.okhttp.OpenAIOkHttpClient;
import com.openai.models.skills.Skill;
import com.openai.models.skills.SkillUpdateParams;

public final class Main {
    private Main() {}

    public static void main(String[] args) {
        OpenAIClient client = OpenAIOkHttpClient.fromEnv();

        SkillUpdateParams params = SkillUpdateParams.builder()
            .skillId("skill_123")
            .defaultVersion("default_version")
            .build();
        Skill skill = client.skills().update(params);
    }
}
200 — Example
{
  "id": "id",
  "created_at": 0,
  "default_version": "default_version",
  "description": "description",
  "latest_version": "latest_version",
  "name": "name",
  "object": "skill"
}
Parameters
SkillUpdateParams params
Optional<String> skillId
String defaultVersion

The skill version number to set as default.

Returns
class Skill:
String id

Unique identifier for the skill.

long createdAt

Unix timestamp (seconds) for when the skill was created.

formatunixtime
String defaultVersion

Default version for the skill.

String description

Description of the skill.

String latestVersion

Latest version for the skill.

String name

Name of the skill.

JsonValue; object_
constant
constant

The object type, which is skill.

Returns Examples
200 — Example
{
  "id": "id",
  "created_at": 0,
  "default_version": "default_version",
  "description": "description",
  "latest_version": "latest_version",
  "name": "name",
  "object": "skill"
}