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

# Create a new version for a project.

> Create a new version for a project.




## OpenAPI

````yaml /openapi/platform-api.yaml post /o/{organisation_id}/projects/{project_id}/versions
openapi: 3.1.0
info:
  title: Versori Platform API
  version: 0.0.1
  license:
    name: UNLICENSED
servers:
  - description: Production
    url: https://platform.versori.com/api/v2
  - description: Staging
    url: https://platform-staging.versori.com/api/v2
  - description: Development
    url: http://localhost:8901
security:
  - bearerToken: []
  - cookie: []
paths:
  /o/{organisation_id}/projects/{project_id}/versions:
    parameters:
      - $ref: '#/components/parameters/organisation_id'
      - $ref: '#/components/parameters/project_id'
    post:
      tags:
        - versions
      summary: Create a new version for a project.
      description: |
        Create a new version for a project.
      operationId: CreateProjectVersion
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateProjectVersion'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProjectVersion'
components:
  parameters:
    organisation_id:
      name: organisation_id
      in: path
      required: true
      schema:
        type: string
        format: ulid
        x-go-type: ulid.ULID
        x-go-name: OrganisationID
        x-go-type-import:
          path: versori.dev/vergo/ulid
    project_id:
      name: project_id
      in: path
      required: true
      schema:
        type: string
        format: ulid
        x-go-type: ulid.ULID
        x-go-name: ProjectID
        x-go-type-import:
          path: versori.dev/vergo/ulid
  schemas:
    CreateProjectVersion:
      type: object
      properties:
        name:
          type: string
          x-go-type-skip-optional-pointer: true
          description: >
            The short name for this version. This name must be unique within
            this project.
        description:
          type: string
          x-go-type-skip-optional-pointer: true
          description: |
            The description of this version.
        labels:
          type: object
          x-go-type: map[string]string
          description: |
            Key-value pairs of strings.
        files:
          type: array
          description: The files associated with the project.
          items:
            $ref: '#/components/schemas/File'
      required:
        - files
        - name
    ProjectVersion:
      type: object
      properties:
        id:
          type: string
          description: The unique identifier for the version.
          format: ulid
          x-go-name: ID
          x-go-type: ulid.ULID
          x-go-type-skip-optional-pointer: true
          x-go-type-import:
            path: versori.dev/vergo/ulid
        name:
          type: string
          x-go-type-skip-optional-pointer: true
          description: >
            The short name for this version. This name must be unique within
            this project.
        description:
          type: string
          x-go-type-skip-optional-pointer: true
          description: |
            The description of this version.
        labels:
          type: object
          x-go-type-skip-optional-pointer: true
          x-go-type: map[string]string
          description: |
            Key-value pairs of strings.
        state:
          $ref: '#/components/schemas/VersionState'
        createdAt:
          type: string
          format: date-time
      required:
        - id
        - name
        - state
        - createdAt
    File:
      type: object
      properties:
        filename:
          type: string
          description: The name of the file.
        content:
          type: string
          description: The content of the file.
      required:
        - filename
        - content
    VersionState:
      type: string
      description: The state of the version.
      enum:
        - draft
        - failed
        - ready
        - superseded
  securitySchemes:
    bearerToken:
      description: >
        Bearer token authentication used by the Versori Platform. External
        consumers must provide an API key, however

        internal consumers must provide a JWT id_token issued by our IdP.
      type: http
      scheme: bearer
    cookie:
      description: Cookie authentication used by the Versori Platform.
      type: apiKey
      in: cookie
      name: cookie

````