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

# Roll out block version

> For every agent whose ACTIVE version pins an older version of this block, publishes a new agent version (re-pinning the block) and activates it. An agent is SKIPPED, with a reason, when its draft differs from its active version — publishing ships the whole draft, and a prompt rollout must never quietly release someone's unfinished model or tool edits. Partial success is a 200 carrying `rolledOut`, `skipped` and `failed`. Pass `agentIds` to limit the scope, or `activate: false` to publish without moving the pointers.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/prompt-blocks/{id}/rollout
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/prompt-blocks/{id}/rollout:
    post:
      tags:
        - Prompt blocks
      summary: Roll out block version
      description: >-
        For every agent whose ACTIVE version pins an older version of this
        block, publishes a new agent version (re-pinning the block) and
        activates it. An agent is SKIPPED, with a reason, when its draft differs
        from its active version — publishing ships the whole draft, and a prompt
        rollout must never quietly release someone's unfinished model or tool
        edits. Partial success is a 200 carrying `rolledOut`, `skipped` and
        `failed`. Pass `agentIds` to limit the scope, or `activate: false` to
        publish without moving the pointers.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            example: d41a8f6b-9c27-4b13-a5e8-2f60c1d7b394
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                agentIds:
                  type: array
                  description: >-
                    Limit the rollout to these agents. Omit to roll out to every
                    one.
                  items:
                    type: string
                  example:
                    - 6f1c0f4e-2b7a-4a51-9a2f-0c9d1b3e5a10
                activate:
                  type: boolean
                  default: true
      responses:
        '200':
          description: >-
            What happened to each agent. A partial rollout is still a 200 — read
            all three lists.
          content:
            application/json:
              schema:
                type: object
                properties:
                  rolledOut:
                    type: array
                    description: Agents republished onto the current block version.
                    items:
                      type: object
                      properties:
                        agentId:
                          type: string
                          format: uuid
                        versionNumber:
                          type: integer
                          description: The agent version number that was published.
                  skipped:
                    type: array
                    description: >-
                      Agents deliberately left alone — already current, or
                      carrying unpublished draft edits that a rollout must not
                      ship.
                    items:
                      type: object
                      properties:
                        agentId:
                          type: string
                          format: uuid
                        reason:
                          type: string
                  failed:
                    type: array
                    description: Agents whose publish or activate failed.
                    items:
                      type: object
                      properties:
                        agentId:
                          type: string
                          format: uuid
                        reason:
                          type: string
              example:
                rolledOut:
                  - agentId: 6f1c0f4e-2b7a-4a51-9a2f-0c9d1b3e5a10
                    versionNumber: 4
                skipped:
                  - agentId: 9b2e7d41-3c68-4a05-8f19-d0c5a2e63b78
                    reason: draft has unpublished changes
                failed: []
        '400':
          description: Invalid body
        '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.

````