---
title: "force update a docker service"
method: PUT
path: "/endpoints/{id}/forceupdateservice"
tags: ["endpoints"]
---

# force update a docker service

`PUT /endpoints/{id}/forceupdateservice`

force update a docker service
**Access policy**: authenticated

## Path parameters

- `id` integer, required

## Request body

- EndpointsForceUpdateServicePayload
  - `PullImage` boolean — PullImage if true will pull the image
  - `ServiceID` string — ServiceId to update

## Response `200`

Success

- SwarmServiceUpdateResponse
  - `Warnings` string[] — Optional warning messages

## Other responses

- `400` — Invalid request
- `403` — Permission denied
- `404` — endpoint not found
- `500` — 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)
