Atlas
Admin — Prompts

Create a prompt item

Adds a new prompt item to a collection. The collection must not be built-in. Sort order defaults to MAX + 1 if not provided.

POST
/api/v1/admin/prompts/{id}/items

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 POST "http://localhost:3001/api/v1/admin/prompts/abc123/items" \  -H "Content-Type: application/json" \  -d '{    "question": "string"  }'
{
  "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"
}