Atlas
Admin — Prompts

Create a prompt collection

Creates a new prompt collection. The handler validates that name and industry are present. The collection is always created as non-built-in.

POST
/api/v1/admin/prompts

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" \  -H "Content-Type: application/json" \  -d '{    "property1": null,    "property2": null  }'
{
  "id": "string",
  "orgId": "string",
  "name": "string",
  "industry": "string",
  "description": "string",
  "isBuiltin": true,
  "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"
}