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

# Set alias

> Point an alias of a document at a version, creating the alias or moving it. Links that follow the alias play the new version from then on.

MCP tool: [`set_alias`](/mcp/tools/documents#set_alias).



## OpenAPI

````yaml /api/openapi.json put /v1/documents/{document_id}/aliases/{alias}
openapi: 3.1.0
info:
  title: Rendermate API
  version: v1
servers:
  - url: https://api.rendermate.com
security:
  - api_key: []
tags:
  - name: Account
  - name: Workspaces
  - name: Projects
  - name: Documents
  - name: Links
  - name: Exports
  - name: Assets
  - name: Generations
  - name: Persons
  - name: Help
paths:
  /v1/documents/{document_id}/aliases/{alias}:
    put:
      tags:
        - Documents
      summary: Set alias
      description: >-
        Point an alias of a document at a version, creating the alias or moving
        it. Links that follow the alias play the new version from then on.


        MCP tool: [`set_alias`](/mcp/tools/documents#set_alias).
      operationId: set_alias
      parameters:
        - description: >-
            The alias, such as `approved` or `client-review`. `latest` is built
            in and can't be set.
          in: path
          name: alias
          required: true
          schema:
            description: >-
              The alias, such as `approved` or `client-review`. `latest` is
              built in and can't be set.
            type: string
        - in: path
          name: document_id
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                version:
                  description: The version it points at.
                  format: uint64
                  minimum: 0
                  type: integer
              required:
                - version
              type: object
        required: true
      responses:
        '401':
          content:
            application/json:
              examples:
                unauthorized:
                  summary: unauthorized
                  value:
                    error:
                      code: unauthorized
                      doc_url: https://rendermate.com/docs/errors#unauthorized
                      message: 'provide a valid API key: Authorization: Bearer sk_…'
                      request_id: req_0193f2a4c1d87b2e9f3a6c5d4e8b7a10
              schema:
                $ref: '#/components/schemas/Error'
          description: >-
            - `unauthorized`: provide a valid API key: Authorization: Bearer
            sk_…
        '403':
          content:
            application/json:
              examples:
                key_without_workspace:
                  summary: key_without_workspace
                  value:
                    error:
                      code: key_without_workspace
                      doc_url: https://rendermate.com/docs/errors#key_without_workspace
                      message: >-
                        this API key has no workspace: create a key in the
                        dashboard, under api keys in the workspace it should act
                        in
                      request_id: req_0193f2a4c1d87b2e9f3a6c5d4e8b7a10
              schema:
                $ref: '#/components/schemas/Error'
          description: >-
            - `key_without_workspace`: this API key has no workspace: create a
            key in the dashboard, under api keys in the workspace it should act
            in
        '500':
          content:
            application/json:
              examples:
                internal:
                  summary: internal
                  value:
                    error:
                      code: internal
                      doc_url: https://rendermate.com/docs/errors#internal
                      message: internal error
                      request_id: req_0193f2a4c1d87b2e9f3a6c5d4e8b7a10
              schema:
                $ref: '#/components/schemas/Error'
          description: '- `internal`: internal error'
        '501':
          content:
            application/json:
              examples:
                not_available:
                  summary: not_available
                  value:
                    error:
                      code: not_available
                      doc_url: https://rendermate.com/docs/errors#not_available
                      message: >-
                        this operation isn't available yet; it's being built.
                        Don't retry it.
                      request_id: req_0193f2a4c1d87b2e9f3a6c5d4e8b7a10
              schema:
                $ref: '#/components/schemas/Error'
          description: >-
            - `not_available`: this operation isn't available yet; it's being
            built. Don't retry it.
components:
  schemas:
    Error:
      properties:
        error:
          properties:
            code:
              description: Stable, such as `asset.name_taken` or `not_available`.
              type: string
            doc_url:
              description: The code's entry on the Errors page.
              type: string
            message:
              description: What went wrong and what to do next.
              type: string
            request_id:
              description: >-
                The request's ID, also in its `x-request-id` header. Quote it
                when you contact support.
              type: string
          required:
            - code
            - message
            - doc_url
            - request_id
          type: object
      required:
        - error
      type: object
  securitySchemes:
    api_key:
      description: >-
        An API key from the dashboard, such as `sk_live_…`. It acts in its
        workspace.
      scheme: bearer
      type: http

````

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