Update, commit, or deploy prompts in bulk
Changed onProcess 1 to 100 prompt operations sequentially in request order using exact prompt_id matching. Each item runs in its own transaction, so a failed item is rolled back without undoing successful items. update changes model configuration on the latest draft and does not accept content fields such as messages, variables, or description; commit snapshots the latest draft; deploy promotes the latest committed version. A later duplicate successful commit or deploy for the same prompt in one request is returned as an indexed error. This endpoint inherits the caller's configured API-key or JWT rate limits; it has no fixed endpoint-specific RPM.
Request
- Base URLhttps://api.respan.ai
- URLhttps://api.respan.ai/api/prompts/bulk/
- Auth
- HTTP bearer
- or HTTP bearer
Request body
Example request
{
"requests": [
{
"body": {
"model": "gpt-6-luna",
"temperature": 0.25,
"max_tokens": 512
}
}
]
}Response
All prompt operations succeeded.
Example response
{
"success_count": 1,
"error_count": 0,
"errors": []
}Changes
- breaking
request body became required
- breaking
the
request property's minItems was increased to1 - breaking
removed
subschema #1subschema #2subschema #3from the/request propertyoneOflist - breaking
added
subschema #2to the response bodyoneOflist for the response status - info
api operation id
prompts_processPromptBulkOperationsremoved and replaced withprocessPromptBulkOperations - info
the endpoint scheme security
DashboardJwtwas added to the API - info
api tag
Promptsadded - info
api tag
promptsremoved - info
added
updatecommitdeploydiscriminator mapping keys to the/request property - info
added to the
/request propertyoneOflist - info
removed from the response body
oneOflist for the response status - info
added the success response with the status
- breaking
- breaking
the response's body type changed from no type to
objectfor status - info
removed the non-success response with the status
- info
added the required property
to the response with the status
- breaking