---
title: "Update saved prompt"
method: PUT
path: "/v1/ai/saved-prompts/{prompt-id}"
tags: ["AI Saved Prompts"]
---

# Update saved prompt

`PUT /v1/ai/saved-prompts/{prompt-id}`

Update an existing saved AI assistant prompt.

## Path parameters

- `prompt-id` integer, required

## Request body

- object
  - `name` string, required — Display name for the saved prompt
  - `description` string — Optional description
  - `promptText` string, required — The prompt text

## Response `200`

Prompt updated

- AiSavedPrompt
  - `id` integer — Unique prompt identifier
  - `name` string — Display name for the saved prompt
  - `description` string, nullable — Optional description
  - `promptText` string, nullable — The prompt text

## Other responses

- `400` — Missing or invalid fields
- `403` — Insufficient access rights
- `500` — Database failure

## Changes

- **2026-09-17** `a203de7e5d7d` — 1 info
  - removed the non-success response with the status `503`
- **2026-09-17** `a81265c49fa9` — 1 info
  - added the non-success response with the status `503`
- **2026-06-10** `30e75dc6a94c` — 1 breaking
  - the response property `promptText` became nullable for the status `200`

[Change history](https://skmtc.dev/netxms/apis/netxms-api/changes/v1/ai/saved-prompts/:prompt-id/put.md)

---

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