Atlas
Admin — Prompts

Update a prompt collection

Updates a prompt collection's name, industry, and/or description. Built-in collections cannot be modified.

PATCH
/api/v1/admin/prompts/{id}

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