---
title: "Create the deployment, configuration and ingress resources for the named `App` in the `Namespace`."
method: POST
path: "/namespaces/{Namespace}/applications/{App}/deploy"
tags: ["application"]
---

# Create the deployment, configuration and ingress resources for the named `App` in the `Namespace`.

`POST /namespaces/{Namespace}/applications/{App}/deploy`

## Path parameters

- `Namespace` string, required
- `App` string, required

## Request body

- DeployRequest — DeployRequest represents and contains the data needed to deploy an application Note that the overall application configuration (instances, configurations, EVs) is already known server side, through AppCreate/AppUpdate requests. This request not only comes with the image to deploy, but also the information where the sources of that image came from.
  - `app` AppRef — AppRef references an App by name and namespace
    - `createdAt` Time — +protobuf.options.marshal=false +protobuf.as=Timestamp +protobuf.options.(gogoproto.goproto_stringer)=false
    - `name` string
    - `namespace` string
  - `image` string
  - `origin` ApplicationOrigin — ApplicationOrigin is the part of the manifest describing the origin of the application (sources). At most one of the fields may be specified / not empty.
    - `Kind` integer — Hidden from yaml. Type tag to simplify struct usage. Note: we cannot hide this property from the JSON since it's used to unmarshal correctly the result of the Apps endpoint @see failling test here: https://github.com/epinio/epinio/runs/4935898437?check_suite_focus=true We should probably expose a more meaningful value instead of this "Kind" int
    - `archive` boolean
    - `container` string
    - `git` GitRef
      - `branch` string
      - `provider` string
      - `repository` string
      - `revision` string
    - `path` string
  - `stage` StageRef — StageRef references a staging run by ID, currently randomly generated for each POST to the staging endpoint
    - `id` string

## Response `200`

---

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