---
title: "Update"
method: PUT
path: "/api/v1/prompts"
tags: ["Prompts Resource"]
---

# Update

`PUT /api/v1/prompts`

## Request

- Base URL: `http://localhost:8080`
- URL: `http://localhost:8080/api/v1/prompts`
- Auth: none declared

## Request body

- PromptReference
  - `id` string
  - `name` string
  - `description` string
  - `messages` PromptMessage[]
    - `role` string
    - `content` PromptContent
      - `type` string
  - `arguments` PromptArgument[]
    - `name` string
    - `description` string
    - `required` boolean
  - `toolReferences` string[]
  - `namespace` string
  - `configurationURI` string

## Response `200`

OK

- WanakuResponseVoid
  - `error` WanakuError
    - `message` string
  - `data` unknown

## Other responses

- `400`: Bad Request

## Changes

- **2026-05-14** `e544cfb4deed`: 1 breaking, 3 info
  - the response's body type changed from no type to `object` for status `200`
  - removed the non-success response with the status `500`
  - added the optional property `data` to the response with the `200` status
  - added the optional property `error` to the response with the `200` status
- **2026-05-14** `cc2b66f5cdc5`: 1 breaking, 2 warning, 1 info
  - the response's body type changed from `object` to no type for status `200`
  - removed the optional property `data` from the response with the `200` status
  - removed the optional property `error` from the response with the `200` status
  - added the non-success response with the status `500`
- **2026-05-13** `41a480854c53`: 1 breaking, 2 info
  - the response's body type changed from no type to `object` for status `200`
  - added the optional property `data` to the response with the `200` status
  - added the optional property `error` to the response with the `200` status
- **2026-05-13** `90c90efc66a2`: 1 info
  - removed the non-success response with the status `500`
- **2026-04-10** `466a3cfa6b8c`: 1 info
  - added the media type `application/json` for the response with the status `200`

[Operation history](https://skmtc.dev/wanaku-ai/apis/wanaku-router-backend-api/changes/api/v1/prompts/put.md)

---

[API](https://skmtc.dev/wanaku-ai/apis/wanaku-router-backend-api.md) - [All operations](https://skmtc.dev/wanaku-ai/apis/wanaku-router-backend-api/llms.txt) - [OpenAPI document](https://skmtc.dev/wanaku-ai/apis/wanaku-router-backend-api/revisions/801af2512b23?raw)
