Atlas
Admin — Prompts

Update a prompt item

Updates a prompt item's question, description, and/or category. The parent collection must not be built-in.

PATCH
/api/v1/admin/prompts/{collectionId}/items/{itemId}

Path Parameters

collectionId*string
Length1 <= length <= 128
itemId*string
Length1 <= length <= 128

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "http://localhost:3001/api/v1/admin/prompts/abc123/items/def456" \  -H "Content-Type: application/json" \  -d '{}'
{
  "id": "string",
  "collectionId": "string",
  "question": "string",
  "description": "string",
  "category": "string",
  "sortOrder": 0,
  "createdAt": "string",
  "updatedAt": "string"
}
{
  "error": "string",
  "message": "string",
  "requestId": "string"
}
{
  "property1": null,
  "property2": null
}
{
  "property1": null,
  "property2": null
}
{
  "error": "string",
  "message": "string",
  "requestId": "string"
}
{
  "property1": null,
  "property2": null
}
{
  "error": "string",
  "message": "string",
  "requestId": "string"
}