---
title: "POST /application.saveBuildType"
method: POST
path: "/application.saveBuildType"
tags: ["application"]
---

# POST /application.saveBuildType

`POST /application.saveBuildType`

## Request body

- object
  - `applicationId` string, required
  - `buildType` 'dockerfile' | 'heroku_buildpacks' | 'paketo_buildpacks' | 'nixpacks' | 'static' | 'railpack', required
  - `dockerfile` string, nullable, required
  - `dockerContextPath` string, nullable, required
  - `dockerBuildStage` string, nullable, required
  - `herokuVersion` string, nullable, required
  - `railpackVersion` string, nullable, required
  - `publishDirectory` string, nullable
  - `isStaticSpa` boolean, nullable

## Response `200`

Successful response

- object

## Other responses

- `400` — Invalid input data
- `401` — Authorization not provided
- `403` — Insufficient access
- `500` — Internal server error

---

[API](https://skmtc.net/dokploy/apis/dokploy-api.md) · [All operations](https://skmtc.net/dokploy/apis/dokploy-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/dokploy/dokploy-api/revisions/0c21b2084cd6/schema)
