--- title: compose full: true --- import { Root, API, APIInfo, APIExample, Responses, Response, ResponseTypes, ExampleResponse, TypeScriptResponse, Property, ObjectCollapsible, Requests, Request } from "fumadocs-ui/components/api"; ## compose-create ### Authorization "} required={true}> In: `header` ### Request Body Minimum length: `1` Value in: `"docker-compose" | "stack"` | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/compose.create" \ -d '{ "name": "string", "description": "string", "projectId": "string", "composeType": "docker-compose", "appName": "string" }' ``` ```js fetch("http://localhost:3000/api/compose.create", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## compose-one ### Authorization "} required={true}> In: `header` ### Query Parameters Minimum length: `1` | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X GET "http://localhost:3000/api/compose.one?composeId=string" ``` ```js fetch("http://localhost:3000/api/compose.one?composeId=string", { method: "GET" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## compose-update ### Authorization "} required={true}> In: `header` ### Request Body Minimum length: `1` Value in: `"git" | "github" | "gitlab" | "bitbucket" | "raw"` Value in: `"docker-compose" | "stack"` Minimum length: `1` Value in: `"idle" | "running" | "done" | "error"` | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/compose.update" \ -d '{ "composeId": "string", "name": "string", "appName": "string", "description": "string", "env": "string", "composeFile": "string", "refreshToken": "string", "sourceType": "git", "composeType": "docker-compose", "repository": "string", "owner": "string", "branch": "string", "autoDeploy": true, "gitlabProjectId": 0, "gitlabRepository": "string", "gitlabOwner": "string", "gitlabBranch": "string", "gitlabPathNamespace": "string", "bitbucketRepository": "string", "bitbucketOwner": "string", "bitbucketBranch": "string", "customGitUrl": "string", "customGitBranch": "string", "customGitSSHKeyId": "string", "command": "string", "composePath": "string", "composeStatus": "idle", "projectId": "string", "createdAt": "string", "githubId": "string", "gitlabId": "string", "bitbucketId": "string" }' ``` ```js fetch("http://localhost:3000/api/compose.update", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## compose-delete ### Authorization "} required={true}> In: `header` ### Request Body Minimum length: `1` | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/compose.delete" \ -d '{ "composeId": "string" }' ``` ```js fetch("http://localhost:3000/api/compose.delete", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## compose-cleanQueues ### Authorization "} required={true}> In: `header` ### Request Body Minimum length: `1` | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/compose.cleanQueues" \ -d '{ "composeId": "string" }' ``` ```js fetch("http://localhost:3000/api/compose.cleanQueues", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## compose-loadServices ### Authorization "} required={true}> In: `header` ### Query Parameters Minimum length: `1` Default: `"cache"` | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X GET "http://localhost:3000/api/compose.loadServices?composeId=string&type=cache" ``` ```js fetch("http://localhost:3000/api/compose.loadServices?composeId=string&type=cache", { method: "GET" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## compose-fetchSourceType ### Authorization "} required={true}> In: `header` ### Request Body Minimum length: `1` | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/compose.fetchSourceType" \ -d '{ "composeId": "string" }' ``` ```js fetch("http://localhost:3000/api/compose.fetchSourceType", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## compose-randomizeCompose ### Authorization "} required={true}> In: `header` ### Request Body Minimum length: `1` | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/compose.randomizeCompose" \ -d '{ "composeId": "string", "prefix": "string" }' ``` ```js fetch("http://localhost:3000/api/compose.randomizeCompose", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## compose-getConvertedCompose ### Authorization "} required={true}> In: `header` ### Query Parameters Minimum length: `1` | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X GET "http://localhost:3000/api/compose.getConvertedCompose?composeId=string" ``` ```js fetch("http://localhost:3000/api/compose.getConvertedCompose?composeId=string", { method: "GET" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## compose-deploy ### Authorization "} required={true}> In: `header` ### Request Body Minimum length: `1` | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/compose.deploy" \ -d '{ "composeId": "string" }' ``` ```js fetch("http://localhost:3000/api/compose.deploy", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## compose-redeploy ### Authorization "} required={true}> In: `header` ### Request Body Minimum length: `1` | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/compose.redeploy" \ -d '{ "composeId": "string" }' ``` ```js fetch("http://localhost:3000/api/compose.redeploy", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## compose-stop ### Authorization "} required={true}> In: `header` ### Request Body Minimum length: `1` | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/compose.stop" \ -d '{ "composeId": "string" }' ``` ```js fetch("http://localhost:3000/api/compose.stop", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## compose-getDefaultCommand ### Authorization "} required={true}> In: `header` ### Query Parameters Minimum length: `1` | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X GET "http://localhost:3000/api/compose.getDefaultCommand?composeId=string" ``` ```js fetch("http://localhost:3000/api/compose.getDefaultCommand?composeId=string", { method: "GET" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## compose-refreshToken ### Authorization "} required={true}> In: `header` ### Request Body Minimum length: `1` | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/compose.refreshToken" \ -d '{ "composeId": "string" }' ``` ```js fetch("http://localhost:3000/api/compose.refreshToken", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## compose-deployTemplate ### Authorization "} required={true}> In: `header` ### Request Body Minimum length: `1` | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/compose.deployTemplate" \ -d '{ "projectId": "string", "id": "string" }' ``` ```js fetch("http://localhost:3000/api/compose.deployTemplate", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## compose-templates ### Authorization "} required={true}> In: `header` | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X GET "http://localhost:3000/api/compose.templates" ``` ```js fetch("http://localhost:3000/api/compose.templates", { method: "GET" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## compose-getTags ### Authorization "} required={true}> In: `header` | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X GET "http://localhost:3000/api/compose.getTags" ``` ```js fetch("http://localhost:3000/api/compose.getTags", { method: "GET" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ```