Admin — Prompts
Update a prompt item
Updates a prompt item's question, description, and/or category. The parent collection must not be built-in.
Path Parameters
collectionId*string
Length
1 <= length <= 128itemId*string
Length
1 <= length <= 128Request 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"
}