> ## Documentation Index > Fetch the complete documentation index at: https://bunny.net/docs/llms.txt > Use this file to discover all available pages before exploring further. # Set Volume Mounts > Sets every application container that mounts the volume and the path it is mounted at, in a single application update. Containers left out of the list stop mounting the volume; an empty list detaches it from the application. ## OpenAPI ````yaml https://api-mc.opsbunny.net/docs/public/swagger.json put /apps/{appId}/volumes/{volumeId}/mounts openapi: 3.0.4 info: title: Public API description: 'Public API endpoints for user consumption. Release version: v1.12.1.0' version: '1.0' servers: - url: https://api.bunny.net/mc security: - AccessKey: [] paths: /apps/{appId}/volumes/{volumeId}/mounts: put: tags: - Volumes summary: Set Volume Mounts description: >- Sets every application container that mounts the volume and the path it is mounted at, in a single application update. Containers left out of the list stop mounting the volume; an empty list detaches it from the application. operationId: SetVolumeMounts parameters: - name: appId in: path required: true schema: type: string - name: volumeId in: path required: true schema: type: string example: my-data-volume requestBody: content: application/json: schema: $ref: '#/components/schemas/SetVolumeMountsRequest' text/json: schema: $ref: '#/components/schemas/SetVolumeMountsRequest' application/*+json: schema: $ref: '#/components/schemas/SetVolumeMountsRequest' required: true responses: '200': description: >- Mounts were set; when they changed, the pods restart once with the new mounts. content: application/json: schema: $ref: '#/components/schemas/SetVolumeMountsResponse' '400': description: >- A container is unknown or listed twice, or its mount path is taken by another volume. content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' '401': description: User is unauthorized. content: application/json: schema: $ref: '#/components/schemas/ProblemDetails' '404': description: Application or volume not found. content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' '500': description: Unexpected server error. content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' components: schemas: SetVolumeMountsRequest: required: - mounts type: object properties: mounts: type: array items: $ref: '#/components/schemas/SetVolumeMountRequest' description: >- Every container that mounts the volume, each at its own path. A container left out does not mount it any more, so an empty list detaches the volume from the application. The whole list is applied in one application update, or nothing is when any mount is invalid. additionalProperties: false description: Set volume mounts request SetVolumeMountsResponse: type: object properties: name: type: string mounts: type: array items: $ref: '#/components/schemas/VolumeMountInList' additionalProperties: false description: Set volume mounts response ErrorDetails: type: object properties: title: type: string description: A short, human-readable summary of the problem type. readOnly: true status: type: integer description: The HTTP status code. format: int32 readOnly: true detail: type: string description: >- A human-readable explanation specific to this occurrence of the problem. nullable: true readOnly: true instance: type: string description: >- A URI reference that identifies the specific occurrence of the problem. nullable: true readOnly: true errors: type: array items: $ref: '#/components/schemas/ValidationError' description: Additional validation errors for field-specific issues. nullable: true readOnly: true id: type: string description: >- The application ID, returned as an RFC 7807 extension field when relevant (e.g. partial save errors). Matches the "id" field from successful create response for consistency. nullable: true readOnly: true additionalProperties: false description: RFC 7807 Problem Details response model. ProblemDetails: type: object properties: type: type: string nullable: true title: type: string nullable: true status: type: integer format: int32 nullable: true detail: type: string nullable: true instance: type: string nullable: true additionalProperties: {} SetVolumeMountRequest: required: - containerId - mountPath type: object properties: containerId: minLength: 1 type: string description: Id of the container template that mounts the volume. mountPath: minLength: 1 pattern: ^/(?!.*//)(?!.*\.\.)(?!.*\s)([a-zA-Z0-9._-]+/?)+$ type: string description: Absolute path inside the container where the volume is mounted. additionalProperties: false description: One container that mounts the volume VolumeMountInList: type: object properties: containerId: type: string containerName: type: string mountPath: type: string additionalProperties: false description: >- Where the application's container templates mount the volume (the desired state). Empty once the volume is detached, even while its instances are still attached to pods that have not rolled yet. ValidationError: required: - message type: object properties: field: type: string nullable: true message: type: string additionalProperties: false securitySchemes: AccessKey: type: apiKey description: Please enter a valid personal API key. name: AccessKey in: header ```` This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.