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

> ## Agent Instructions
> Treat Stackdome as an application-delivery platform for coding agents and developers, not as a Kubernetes dashboard.
> Prefer the Stackdome agent plugin as the user entry point and the stackdome CLI as the execution interface.
> Route agents who need the maintained deploy skill to npx skills add stackdome/skills and the complete operational workflow to /guides/ai-agents.
> Verify commands and flags with stackdome --help. Run stackdome init before authoring stackfile.yaml and stackdome validate before deploying.
> Use -o json for automation and verify documented terminal states before claiming success.
> Never request a user's account password. Use API-token authentication.
> During alpha, Stackdome Cloud is ephemeral and capacity-limited, and each organization can connect one cluster.
> Do not expose Kubernetes as a user concern unless the task is self-hosting or infrastructure architecture.

# Create a new volume



## OpenAPI

````yaml /openapi.yaml post /api/v1/organizations/{org_id}/projects/{project_name}/volumes
openapi: 3.0.0
info:
  description: >-
    Deploy, debug, and operate applications through the Stackdome REST API on
    Stackdome Cloud or a self-hosted installation. This API is in alpha and may
    change before general availability.
  title: Stackdome API
  version: 0.0.1-alpha
servers:
  - url: /
security: []
paths:
  /api/v1/organizations/{org_id}/projects/{project_name}/volumes:
    post:
      summary: Create a new volume
      parameters:
        - description: The ID of the organization
          explode: false
          in: path
          name: org_id
          required: true
          schema:
            type: string
          style: simple
        - description: The name of the project
          explode: false
          in: path
          name: project_name
          required: true
          schema:
            type: string
          style: simple
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Volume'
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Volume'
          description: Volume created successfully
        '400':
          description: Invalid request payload
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '500':
          description: Internal server error
      security:
        - Bearer: []
components:
  schemas:
    Volume:
      additionalProperties: false
      example:
        project_id: project_id
        name: name
        annotations:
          - value: value
            key: key
          - value: value
            key: key
        id: id
        spec:
          needs_sync_before_use: true
          storage_class: storage_class
          size: size
          source:
            git_repo_source:
              repo_url: repo_url
              revision:
                commit: commit
                tag: tag
                branch: branch
            remote_source:
              path: path
              current_directory_hash: current_directory_hash
            build_source:
              - destination_path: destination_path
                resource_ref: resource_ref
                source_path: source_path
              - destination_path: destination_path
                resource_ref: resource_ref
                source_path: source_path
            source_type: null
          access_mode: null
        labels:
          - value: value
            key: key
          - value: value
            key: key
        status:
          phase: phase
          build_artifact_syncs:
            - build_id: build_id
              resource_name: resource_name
              status: status
            - build_id: build_id
              resource_name: resource_name
              status: status
          last_synced_git_revision: last_synced_git_revision
          last_remote_sync_hash: last_remote_sync_hash
          conditions:
            - reason: reason
              last_transition_time: '2000-01-23T04:56:07.000Z'
              type: type
              message: message
              observed_generation: 1
              status: status
            - reason: reason
              last_transition_time: '2000-01-23T04:56:07.000Z'
              type: type
              message: message
              observed_generation: 1
              status: status
      properties:
        id:
          readOnly: true
          type: string
        project_id:
          readOnly: true
          type: string
        name:
          type: string
        labels:
          items:
            $ref: '#/components/schemas/Label'
          type: array
        annotations:
          items:
            $ref: '#/components/schemas/Annotation'
          type: array
        spec:
          $ref: '#/components/schemas/VolumeSpec'
        status:
          $ref: '#/components/schemas/VolumeStatus'
      required:
        - name
        - spec
      type: object
    Label:
      additionalProperties: false
      example:
        value: value
        key: key
      properties:
        key:
          type: string
        value:
          type: string
      required:
        - key
        - value
      type: object
    Annotation:
      example:
        value: value
        key: key
      properties:
        key:
          type: string
        value:
          type: string
      required:
        - key
        - value
      type: object
    VolumeSpec:
      additionalProperties: false
      example:
        needs_sync_before_use: true
        storage_class: storage_class
        size: size
        source:
          git_repo_source:
            repo_url: repo_url
            revision:
              commit: commit
              tag: tag
              branch: branch
          remote_source:
            path: path
            current_directory_hash: current_directory_hash
          build_source:
            - destination_path: destination_path
              resource_ref: resource_ref
              source_path: source_path
            - destination_path: destination_path
              resource_ref: resource_ref
              source_path: source_path
          source_type: null
        access_mode: null
      properties:
        size:
          type: string
        storage_class:
          type: string
        needs_sync_before_use:
          type: boolean
        access_mode:
          $ref: '#/components/schemas/VolumeAccessMode'
        source:
          $ref: '#/components/schemas/VolumeSource'
      required:
        - access_mode
        - needs_sync_before_use
        - size
      type: object
    VolumeStatus:
      example:
        phase: phase
        build_artifact_syncs:
          - build_id: build_id
            resource_name: resource_name
            status: status
          - build_id: build_id
            resource_name: resource_name
            status: status
        last_synced_git_revision: last_synced_git_revision
        last_remote_sync_hash: last_remote_sync_hash
        conditions:
          - reason: reason
            last_transition_time: '2000-01-23T04:56:07.000Z'
            type: type
            message: message
            observed_generation: 1
            status: status
          - reason: reason
            last_transition_time: '2000-01-23T04:56:07.000Z'
            type: type
            message: message
            observed_generation: 1
            status: status
      properties:
        conditions:
          items:
            $ref: '#/components/schemas/Condition'
          type: array
        phase:
          type: string
        build_artifact_syncs:
          items:
            $ref: '#/components/schemas/BuildArtifactSyncInfo'
          type: array
        last_synced_git_revision:
          type: string
        last_remote_sync_hash:
          type: string
      type: object
    VolumeAccessMode:
      enum:
        - ReadWriteOnce
        - ReadWriteMany
        - ReadOnlyMany
      type: string
    VolumeSource:
      additionalProperties: false
      example:
        git_repo_source:
          repo_url: repo_url
          revision:
            commit: commit
            tag: tag
            branch: branch
        remote_source:
          path: path
          current_directory_hash: current_directory_hash
        build_source:
          - destination_path: destination_path
            resource_ref: resource_ref
            source_path: source_path
          - destination_path: destination_path
            resource_ref: resource_ref
            source_path: source_path
        source_type: null
      properties:
        git_repo_source:
          $ref: '#/components/schemas/GitRepoSource'
        source_type:
          $ref: '#/components/schemas/VolumeSourceTypes'
        remote_source:
          $ref: '#/components/schemas/RemoteSource'
        build_source:
          items:
            $ref: '#/components/schemas/BuildArtifact'
          type: array
      required:
        - source_type
      type: object
    Condition:
      additionalProperties: false
      example:
        reason: reason
        last_transition_time: '2000-01-23T04:56:07.000Z'
        type: type
        message: message
        observed_generation: 1
        status: status
      properties:
        type:
          type: string
        status:
          type: string
        observed_generation:
          type: integer
        last_transition_time:
          format: date-time
          type: string
        reason:
          type: string
        message:
          type: string
      type: object
    BuildArtifactSyncInfo:
      example:
        build_id: build_id
        resource_name: resource_name
        status: status
      properties:
        resource_name:
          type: string
        build_id:
          type: string
        status:
          type: string
      type: object
    GitRepoSource:
      example:
        repo_url: repo_url
        revision:
          commit: commit
          tag: tag
          branch: branch
      properties:
        repo_url:
          type: string
        revision:
          $ref: '#/components/schemas/GitRepoRevision'
      required:
        - repo_url
        - revision
      type: object
    VolumeSourceTypes:
      enum:
        - RemoteDir
        - BuildArtifact
        - GitRepo
      type: string
    RemoteSource:
      example:
        path: path
        current_directory_hash: current_directory_hash
      properties:
        path:
          type: string
        current_directory_hash:
          type: string
      required:
        - current_directory_hash
        - path
      type: object
    BuildArtifact:
      example:
        destination_path: destination_path
        resource_ref: resource_ref
        source_path: source_path
      properties:
        resource_ref:
          type: string
        source_path:
          type: string
        destination_path:
          type: string
      required:
        - destination_path
        - resource_ref
        - source_path
      type: object
    GitRepoRevision:
      example:
        commit: commit
        tag: tag
        branch: branch
      properties:
        branch:
          type: string
        tag:
          type: string
        commit:
          type: string
      type: object
  securitySchemes:
    Bearer:
      bearerFormat: JWT
      scheme: bearer
      type: http

````