--- title: application full: true --- import { Root, API, APIInfo, APIExample, Responses, Response, ResponseTypes, ExampleResponse, TypeScriptResponse, Property, ObjectCollapsible, Requests, Request } from "fumadocs-ui/components/api"; ## application-create ### 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/application.create" \ -d '{ "name": "string", "appName": "string", "description": "string", "projectId": "string" }' ``` ```js fetch("http://localhost:3000/api/application.create", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## application-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/application.one?applicationId=string" ``` ```js fetch("http://localhost:3000/api/application.one?applicationId=string", { method: "GET" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## application-reload ### Authorization "} required={true}> In: `header` ### Request Body | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/application.reload" \ -d '{ "appName": "string", "applicationId": "string" }' ``` ```js fetch("http://localhost:3000/api/application.reload", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## application-delete ### Authorization "} required={true}> In: `header` ### Request Body | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/application.delete" \ -d '{ "applicationId": "string" }' ``` ```js fetch("http://localhost:3000/api/application.delete", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## application-stop ### Authorization "} required={true}> In: `header` ### Request Body | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/application.stop" \ -d '{ "applicationId": "string" }' ``` ```js fetch("http://localhost:3000/api/application.stop", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## application-start ### Authorization "} required={true}> In: `header` ### Request Body | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/application.start" \ -d '{ "applicationId": "string" }' ``` ```js fetch("http://localhost:3000/api/application.start", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## application-redeploy ### Authorization "} required={true}> In: `header` ### Request Body | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/application.redeploy" \ -d '{ "applicationId": "string" }' ``` ```js fetch("http://localhost:3000/api/application.redeploy", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## application-saveEnvironment ### Authorization "} required={true}> In: `header` ### Request Body | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/application.saveEnvironment" \ -d '{ "applicationId": "string", "env": "string", "buildArgs": "string" }' ``` ```js fetch("http://localhost:3000/api/application.saveEnvironment", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## application-saveBuildType ### Authorization "} required={true}> In: `header` ### Request Body Value in: `"dockerfile" | "heroku_buildpacks" | "paketo_buildpacks" | "nixpacks" | "static"` | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/application.saveBuildType" \ -d '{ "applicationId": "string", "buildType": "dockerfile", "dockerfile": "string", "dockerContextPath": "string", "publishDirectory": "string" }' ``` ```js fetch("http://localhost:3000/api/application.saveBuildType", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## application-saveGithubProvider ### Authorization "} required={true}> In: `header` ### Request Body | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/application.saveGithubProvider" \ -d '{ "applicationId": "string", "repository": "string", "branch": "string", "owner": "string", "buildPath": "string", "githubId": "string" }' ``` ```js fetch("http://localhost:3000/api/application.saveGithubProvider", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## application-saveGitlabProvider ### Authorization "} required={true}> In: `header` ### Request Body | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/application.saveGitlabProvider" \ -d '{ "applicationId": "string", "gitlabBranch": "string", "gitlabBuildPath": "string", "gitlabOwner": "string", "gitlabRepository": "string", "gitlabId": "string", "gitlabProjectId": 0, "gitlabPathNamespace": "string" }' ``` ```js fetch("http://localhost:3000/api/application.saveGitlabProvider", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## application-saveBitbucketProvider ### Authorization "} required={true}> In: `header` ### Request Body | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/application.saveBitbucketProvider" \ -d '{ "bitbucketBranch": "string", "bitbucketBuildPath": "string", "bitbucketOwner": "string", "bitbucketRepository": "string", "bitbucketId": "string", "applicationId": "string" }' ``` ```js fetch("http://localhost:3000/api/application.saveBitbucketProvider", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## application-saveDockerProvider ### Authorization "} required={true}> In: `header` ### Request Body | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/application.saveDockerProvider" \ -d '{ "dockerImage": "string", "applicationId": "string", "username": "string", "password": "string" }' ``` ```js fetch("http://localhost:3000/api/application.saveDockerProvider", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## application-saveGitProdiver ### Authorization "} required={true}> In: `header` ### Request Body | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/application.saveGitProdiver" \ -d '{ "customGitBranch": "string", "applicationId": "string", "customGitBuildPath": "string", "customGitUrl": "string", "customGitSSHKeyId": "string" }' ``` ```js fetch("http://localhost:3000/api/application.saveGitProdiver", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## application-markRunning ### Authorization "} required={true}> In: `header` ### Request Body | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/application.markRunning" \ -d '{ "applicationId": "string" }' ``` ```js fetch("http://localhost:3000/api/application.markRunning", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## application-update ### Authorization "} required={true}> In: `header` ### Request Body Minimum length: `1` Minimum length: `1` Value in: `"github" | "docker" | "git"` "} required={false} deprecated={undefined}> "} required={false} deprecated={undefined}> "} required={false} deprecated={undefined}> "} required={false} deprecated={undefined}> | null"} required={false} deprecated={undefined}> "} required={false} deprecated={undefined}> Value in: `"idle" | "running" | "done" | "error"` Value in: `"dockerfile" | "heroku_buildpacks" | "paketo_buildpacks" | "nixpacks" | "static"` | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/application.update" \ -d '{ "applicationId": "string", "name": "string", "appName": "string", "description": "string", "env": "string", "buildArgs": "string", "memoryReservation": 0, "memoryLimit": 0, "cpuReservation": 0, "cpuLimit": 0, "title": "string", "enabled": true, "subtitle": "string", "command": "string", "refreshToken": "string", "sourceType": "github", "repository": "string", "owner": "string", "branch": "string", "buildPath": "string", "autoDeploy": true, "gitlabProjectId": 0, "gitlabRepository": "string", "gitlabOwner": "string", "gitlabBranch": "string", "gitlabBuildPath": "string", "gitlabPathNamespace": "string", "bitbucketRepository": "string", "bitbucketOwner": "string", "bitbucketBranch": "string", "bitbucketBuildPath": "string", "username": "string", "password": "string", "dockerImage": "string", "customGitUrl": "string", "customGitBranch": "string", "customGitBuildPath": "string", "customGitSSHKeyId": "string", "dockerfile": "string", "dockerContextPath": "string", "dropBuildPath": "string", "healthCheckSwarm": { "Test": [ "string" ], "Interval": 0, "Timeout": 0, "StartPeriod": 0, "Retries": 0 }, "restartPolicySwarm": { "Condition": "string", "Delay": 0, "MaxAttempts": 0, "Window": 0 }, "placementSwarm": { "Constraints": [ "string" ], "Preferences": [ { "Spread": { "SpreadDescriptor": "string" } } ], "MaxReplicas": 0, "Platforms": [ { "Architecture": "string", "OS": "string" } ] }, "updateConfigSwarm": { "Parallelism": 0, "Delay": 0, "FailureAction": "string", "Monitor": 0, "MaxFailureRatio": 0, "Order": "string" }, "rollbackConfigSwarm": { "Parallelism": 0, "Delay": 0, "FailureAction": "string", "Monitor": 0, "MaxFailureRatio": 0, "Order": "string" }, "modeSwarm": { "Replicated": { "Replicas": 0 }, "Global": {}, "ReplicatedJob": { "MaxConcurrent": 0, "TotalCompletions": 0 }, "GlobalJob": {} }, "labelsSwarm": { "property1": "string", "property2": "string" }, "networkSwarm": [ { "Target": "string", "Aliases": [ "string" ], "DriverOpts": {} } ], "replicas": 0, "applicationStatus": "idle", "buildType": "dockerfile", "publishDirectory": "string", "createdAt": "string", "registryId": "string", "projectId": "string", "githubId": "string", "gitlabId": "string", "bitbucketId": "string" }' ``` ```js fetch("http://localhost:3000/api/application.update", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## application-refreshToken ### Authorization "} required={true}> In: `header` ### Request Body | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/application.refreshToken" \ -d '{ "applicationId": "string" }' ``` ```js fetch("http://localhost:3000/api/application.refreshToken", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## application-deploy ### Authorization "} required={true}> In: `header` ### Request Body | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/application.deploy" \ -d '{ "applicationId": "string" }' ``` ```js fetch("http://localhost:3000/api/application.deploy", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## application-cleanQueues ### Authorization "} required={true}> In: `header` ### Request Body | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/application.cleanQueues" \ -d '{ "applicationId": "string" }' ``` ```js fetch("http://localhost:3000/api/application.cleanQueues", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## application-readTraefikConfig ### Authorization "} required={true}> In: `header` ### Query Parameters | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X GET "http://localhost:3000/api/application.readTraefikConfig?applicationId=string" ``` ```js fetch("http://localhost:3000/api/application.readTraefikConfig?applicationId=string", { method: "GET" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## application-updateTraefikConfig ### Authorization "} required={true}> In: `header` ### Request Body | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/application.updateTraefikConfig" \ -d '{ "applicationId": "string", "traefikConfig": "string" }' ``` ```js fetch("http://localhost:3000/api/application.updateTraefikConfig", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## application-readAppMonitoring ### Authorization "} required={true}> In: `header` ### Query Parameters | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X GET "http://localhost:3000/api/application.readAppMonitoring?appName=string" ``` ```js fetch("http://localhost:3000/api/application.readAppMonitoring?appName=string", { method: "GET" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ```