---
title: "PUT /api/{org_id}/prompts/{entity_id}/labels/{label}"
method: PUT
path: "/api/{org_id}/prompts/{entity_id}/labels/{label}"
tags: ["Prompts"]
---

# PUT /api/{org_id}/prompts/{entity_id}/labels/{label}

`PUT /api/{org_id}/prompts/{entity_id}/labels/{label}`

## Request

- Base URL: `https://api.openobserve.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.openobserve.ai/api/{org_id}/prompts/{entity_id}/labels/{label}`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/openobserve/apis/openobserve-api-http/docs/api/:org_id/prompts/:entity_id/labels/:label/put.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `org_id` string, required
- `entity_id` string, required
- `label` string, required

## Request body

- object
  - `ifVersion` integer, nullable
  - `version` integer, required

## Response `200`

- object
  - `deletedAt` integer, nullable
  - `name` string, required
  - `updatedAt` integer, required
  - `updatedBy` string, required
  - `version` integer, nullable

---

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