---
title: "Publish a skill"
method: POST
path: "/api/v1/skills/{skill_id}/publish"
tags: ["authed"]
---

# Publish a skill

`POST /api/v1/skills/{skill_id}/publish`

## Request

- Base URL: `https://api.teaflask.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.teaflask.com/api/v1/skills/{skill_id}/publish`
- Auth: none declared

Publish a draft revision of a skill: it becomes what agents granted
the skill load. Owners only. Publish only a revision you have just
read; one that isn't a draft is refused.

## Path parameters

- `skill_id` string, uuid, required: The skill's id, as list_skills returns it.

## Request body

- PublishSkillRequest
  - `revision_id` string, uuid, required: The draft revision to publish, as get_skill returns it.

## Response `200`

Successful Response

- SkillResponse
  - `id` string, uuid, required: The skill's id.
  - `organization_id` string, uuid, required: The organization it belongs to.
  - `slug` string, required: The skill's unique short name; an agent's configuration grants skills by it.
  - `published_revision_id` string, uuid, nullable, required: The revision agents load; null until the skill is first published.
  - `description` string, nullable, required: What the published skill is for; null until something is published.
  - `created_at` string, date-time, required: When the skill was created.
  - `updated_at` string, date-time, required: When the skill last changed.

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found
- `405`: Method not allowed
- `422`: Validation error
- `500`: Internal server error

---

[API](https://skmtc.dev/teaflask/apis/teaflask-api.md) - [All operations](https://skmtc.dev/teaflask/apis/teaflask-api/llms.txt) - [OpenAPI document](https://skmtc.dev/teaflask/apis/teaflask-api/revisions/d23e9286b847?raw)
