---
title: "Update an EdgeStack status"
method: PUT
path: "/edge_stacks/{id}/status"
tags: ["edge_stacks"]
---

# Update an EdgeStack status

`PUT /edge_stacks/{id}/status`

Authorized only if the request is done by an Edge Environment(Endpoint)

## Path parameters

- `id` integer, required

## Request body

- EdgestacksUpdateStatusPayload
  - `EndpointID` integer
  - `Error` string
  - `Status` 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13
  - `Time` integer
  - `Version` integer

## Response `200`

OK

- PortainerEdgeStack
  - `CreatedBy` string — The username which created this stack
  - `CreatedByUserId` string — The username id which created this stack
  - `CreationDate` integer — StatusArray map[EndpointID][]EdgeStackStatus `json:"StatusArray"`
  - `DeploymentType` 0 | 1
  - `EdgeGroups` integer[]
  - `EntryPoint` string
  - `Id` integer — EdgeStack Identifier
  - `ManifestPath` string
  - `Name` string
  - `NumDeployments` integer
  - `ProjectPath` string
  - `Status` object
  - `UseManifestNamespaces` boolean — Uses the manifest's namespaces instead of the default one
  - `Version` integer

## Other responses

- `400` — Bad Request
- `403` — Forbidden
- `404` — Not Found
- `500` — Internal Server Error

---

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