---
title: "Deploy a new kubernetes stack from a url"
method: POST
path: "/stacks/create/kubernetes/url"
tags: ["stacks"]
---

# Deploy a new kubernetes stack from a url

`POST /stacks/create/kubernetes/url`

Deploy a new stack into a Docker environment specified via the environment identifier.
**Access policy**: authenticated

## Query parameters

- `endpointId` integer, required

## Request body

- StacksKubernetesManifestURLDeploymentPayload
  - `ComposeFormat` boolean
  - `ManifestURL` string
  - `Namespace` string
  - `StackName` string

## Response `200`

OK

- StacksCreateKubernetesStackResponse
  - `Output` string

## Other responses

- `400` — Invalid request
- `500` — Server error

## Changes

- **2026-07-19** `800cfdeda241` — 24 warning, 1 info
  - removed the optional property `AdditionalFiles` from the response with the `200` status
  - removed the optional property `AutoUpdate` from the response with the `200` status
  - removed the optional property `CreatedBy` from the response with the `200` status
  - removed the optional property `CreationDate` from the response with the `200` status
  - …21 more

[Change history](https://skmtc.dev/portainer/apis/portainerce-api/changes/stacks/create/kubernetes/url/post.md)

---

[API](https://skmtc.dev/portainer/apis/portainerce-api.md) · [All operations](https://skmtc.dev/portainer/apis/portainerce-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/portainer/portainerce-api/revisions/6d8f5cab4e5a/schema)
