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

# Activate workflow version

> Makes the given published version the active one (same workflow). Activating a draft or a version of another workflow is rejected with a 4xx.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/workflows/{id}/activate
openapi: 3.1.0
info:
  title: Sidenet API
  version: 1.0.0
  description: >-
    Sidenet HTTP endpoints exposed by the Sidenet Studio. All routes require an
    api key that can be generated through the studio in studio.sidenet.ai.
servers:
  - url: https://api.sidenet.ai
security:
  - bearerAuth: []
paths:
  /v1/workflows/{id}/activate:
    post:
      tags:
        - Workflows
      summary: Activate workflow version
      description: >-
        Makes the given published version the active one (same workflow).
        Activating a draft or a version of another workflow is rejected with a
        4xx.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            example: 4c2f9e18-7a63-4d05-b1e8-93a7c0f2d641
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                version_number:
                  type: integer
                  example: 2
                version_id:
                  type: string
                  description: Alternative to `version_number` — one or the other.
                  example: e81b4a72-0c95-4f38-a6d2-5b17e9c4038f
      responses:
        '200':
          description: >-
            The workflow, with `active_version_id` moved to the version you
            named
          content:
            application/json:
              schema:
                type: object
                properties:
                  workflow:
                    type: object
                    properties:
                      id:
                        type: string
                        format: uuid
                      org_id:
                        type: string
                        format: uuid
                      name:
                        type: string
                      description:
                        type: string
                        nullable: true
                      active_version_id:
                        type: string
                        format: uuid
                        nullable: true
                        description: Null until a published version is activated.
                      owner_kind:
                        type: string
                        enum:
                          - org
                          - chatter
                        description: >-
                          `org` for Studio-authored workflows, `chatter` for
                          ones an end user built through a builder agent.
                      owner_external_id:
                        type: string
                        nullable: true
                        description: >-
                          The owning end user's external id when `owner_kind` is
                          `chatter`; null otherwise.
        '400':
          description: Bad target (e.g. not published)
        '404':
          description: Not found
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Organization API key, generated in studio.sidenet.ai. Backend only —
        never in a browser.

````