---
title: "create or update oam application in the specified namespace"
method: POST
path: "/v1/namespaces/{namespace}/applications/{appname}"
tags: ["oam_application"]
---

# create or update oam application in the specified namespace

`POST /v1/namespaces/{namespace}/applications/{appname}`

## Path parameters

- `namespace` string, required
- `appname` string, required

## Query parameters

- `dryRun` string
- `publishVersion` string

## Request body

- V1ApplicationRequest
  - `components` CommonApplicationComponent[], required
    - `dependsOn` string[]
    - `externalRevision` string
    - `inputs` V1alpha1InputItem[]
      - `from` string, required
      - `parameterKey` string
    - `name` string, required
    - `outputs` V1alpha1OutputItem[]
      - `name` string, required
      - `valueFrom` string, required
    - `properties` string
    - `scopes` object
    - `traits` CommonApplicationTrait[]
      - `properties` string
      - `type` string, required
    - `type` string, required
  - `policies` V1beta1AppPolicy[]
    - `name` string
    - `properties` string
    - `type` string, required
  - `workflow` V1beta1Workflow
    - `mode` V1alpha1WorkflowExecuteMode
      - `steps` string
      - `subSteps` string
    - `ref` string
    - `steps` V1alpha1WorkflowStep[]
      - `dependsOn` string[]
      - `if` string
      - `inputs` V1alpha1InputItem[]
        - `from` string, required
        - `parameterKey` string
      - `meta` V1alpha1WorkflowStepMeta
        - `alias` string
      - `mode` string
      - `name` string
      - `outputs` V1alpha1OutputItem[]
        - `name` string, required
        - `valueFrom` string, required
      - `properties` string
      - `subSteps` V1alpha1WorkflowStepBase[]
        - `dependsOn` string[]
        - `if` string
        - `inputs` V1alpha1InputItem[]
          - `from` string, required
          - `parameterKey` string
        - `meta` V1alpha1WorkflowStepMeta
          - `alias` string
        - `name` string
        - `outputs` V1alpha1OutputItem[]
          - `name` string, required
          - `valueFrom` string, required
        - `properties` string
        - `timeout` string
        - `type` string, required
      - `timeout` string
      - `type` string, required

## Response `200`

OK

---

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