Prompts

Update, commit, or deploy prompts in bulk

Changed on

Process 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.

post/api/prompts/bulk/

Request

  • Base URL
    https://api.respan.ai
  • URL
    https://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.

success_countinteger required

Number of items successfully processed.

error_countinteger required

Number of items that failed.

Example response

{
  "success_count": 1,
  "error_count": 0,
  "errors": []
}

Changes

    • breaking

      request body became required

    • breaking

      the request property's minItems was increased to 1

    • breaking

      removed subschema #1 subschema #2 subschema #3 from the / request property oneOf list

    • breaking

      added subschema #2 to the response body oneOf list for the response status

    • info

      api operation id prompts_processPromptBulkOperations removed and replaced with processPromptBulkOperations

    • info

      the endpoint scheme security DashboardJwt was added to the API

    • info

      api tag Prompts added

    • info

      api tag prompts removed

    • info

      added update commit deploy discriminator mapping keys to the / request property

    • info

      added to the / request property oneOf list

    • info

      removed from the response body oneOf list for the response status

    • info

      added the success response with the status

    • breaking

      the response's body type changed from no type to object for status

    • info

      removed the non-success response with the status

    • info

      added the required property to the response with the status