--- title: mounts full: true --- import { Root, API, APIInfo, APIExample, Responses, Response, ResponseTypes, ExampleResponse, TypeScriptResponse, Property, ObjectCollapsible, Requests, Request } from "fumadocs-ui/components/api"; ## mounts-create ### Authorization "} required={true}> In: `header` ### Request Body Value in: `"bind" | "volume" | "file"` Minimum length: `1` Default: `"application"` Value in: `"application" | "postgres" | "mysql" | "mariadb" | "mongo" | "redis" | "compose"` Minimum length: `1` | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/mounts.create" \ -d '{ "type": "bind", "hostPath": "string", "volumeName": "string", "content": "string", "mountPath": "string", "serviceType": "application", "filePath": "string", "serviceId": "string" }' ``` ```js fetch("http://localhost:3000/api/mounts.create", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## mounts-remove ### Authorization "} required={true}> In: `header` ### Request Body | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/mounts.remove" \ -d '{ "mountId": "string" }' ``` ```js fetch("http://localhost:3000/api/mounts.remove", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## mounts-one ### Authorization "} required={true}> In: `header` ### Query Parameters | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X GET "http://localhost:3000/api/mounts.one?mountId=string" ``` ```js fetch("http://localhost:3000/api/mounts.one?mountId=string", { method: "GET" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## mounts-update ### Authorization "} required={true}> In: `header` ### Request Body Minimum length: `1` Value in: `"bind" | "volume" | "file"` Default: `"application"` Value in: `"application" | "postgres" | "mysql" | "mariadb" | "mongo" | "redis" | "compose"` Minimum length: `1` | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/mounts.update" \ -d '{ "mountId": "string", "type": "bind", "hostPath": "string", "volumeName": "string", "filePath": "string", "content": "string", "serviceType": "application", "mountPath": "string", "applicationId": "string", "postgresId": "string", "mariadbId": "string", "mongoId": "string", "mysqlId": "string", "redisId": "string", "composeId": "string" }' ``` ```js fetch("http://localhost:3000/api/mounts.update", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ```