Atlas
Admin — Prompts

Reorder prompt items

Reorders all items within a collection. The itemIds array must contain every item ID in the collection exactly once.

PUT
/api/v1/admin/prompts/{id}/reorder

Path Parameters

id*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 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"
}