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
| Field | Type | Required | Description |
|---|---|---|---|
create | array | No | Prompts to create in this batch. |
update | array | No | Prompts to update in this batch. |
delete | array | No | Prompt 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
| Status | Description |
|---|---|
200 | Batch prompt operation completed |
400 | Bad request |
401 | Unauthorized |
403 | Prompt limit exceeded |
404 | Prompt not found |
429 | Rate limited |
500 | Internal error |