Create, update, and delete prompts in one request

Atomically creates, updates, and deletes prompts in a single request. Validates all operations before applying any changes. Subject to the same prompt limits as individual operations.

POST /prompts/batch

Create, update, and delete prompts in one request

Atomically creates, updates, and deletes prompts in a single request. Validates all operations before applying any changes. Subject to the same prompt limits as individual operations.

Authentication: API key required (Bearer token)

Request Body

FieldTypeRequiredDescription
createarrayNoPrompts to create in this batch.
updatearrayNoPrompts to update in this batch.
deletearrayNoPrompt IDs to remove.

Request Example

curl -X POST https://sellm.io/api/v1/prompts/batch \
  -H "Authorization: Bearer sellm_your_api_key_here" \
  -H "Content-Type: application/json"

Responses

StatusDescription
200Batch prompt operation completed
400Bad request
401Unauthorized
403Prompt limit exceeded
404Prompt not found
429Rate limited
500Internal error