> ## Documentation Index
> Fetch the complete documentation index at: https://www.bolna.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Make agent version live API

> Make a Bolna voice agent version live, so every new call uses it, or roll back to an earlier version.

Restores the version's configuration onto the agent and makes it the live version. Every new call uses it, unless the call pins another version with `agent_version_id`. The response's `current_version_id` is the version you passed.

The version that was live stays in [List agent versions](https://www.bolna.ai/docs/api-reference/agent/v2/versions/list.md), so you can roll back by calling this endpoint with its `id`.

Inbound phone numbers stay connected to the agent: making a version live doesn't change which numbers route to it.


## OpenAPI

````yaml POST /v2/agent/{agent_id}/versions/{agent_version_id}/set_current
openapi: 3.1.0
info:
  title: Bolna API
  description: >-
    Use and leverage Bolna Voice AI using APIs through HTTP requests from any
    language in your applications and workflows.
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.bolna.ai
    description: Production server
security:
  - bearerAuth: []
tags:
  - name: SIP trunks
    description: >-
      Bring-your-own-carrier SIP trunks, their gateways, carrier IPs and
      numbers.
paths:
  /v2/agent/{agent_id}/versions/{agent_version_id}/set_current:
    post:
      description: >-
        Make a version live. Its configuration is restored onto the agent, and
        every new call uses it. The version that was live stays in the list.
      parameters:
        - in: path
          name: agent_id
          required: true
          description: The agent's `id`
          schema:
            type: string
            format: uuid
        - in: path
          name: agent_version_id
          required: true
          description: >-
            The version's `id`, from [List agent
            versions](/api-reference/agent/v2/versions/list)
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Version is now live
          content:
            application/json:
              example:
                message: Agent version set as current successfully
                current_version_id: 7e775357-d9d3-4c82-a7d7-b7c3346caf79
        '404':
          description: Agent or version not found
          content:
            application/json:
              example:
                message: Agent version not found
        '409':
          description: Another save of this agent is in progress
          content:
            application/json:
              example:
                message: Agent is currently being updated. Please retry.
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.