Admin — Prompts
Reorder prompt items
Reorders all items within a collection. The itemIds array must contain every item ID in the collection exactly once.
Path Parameters
id*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 PUT "http://localhost:3001/api/v1/admin/prompts/abc123/reorder" \ -H "Content-Type: application/json" \ -d '{ "itemIds": [ "string" ] }'{
"reordered": true
}{
"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"
}