---
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

---

[API](https://skmtc.net/netxms/apis/netxms-api.md) · [All operations](https://skmtc.net/netxms/apis/netxms-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/netxms/netxms-api/revisions/e9197a1d31c4/schema)
