---
title: "Stop running job"
method: PUT
path: "/jobservice/jobs/{job_id}"
tags: ["jobservice"]
---

# Stop running job

`PUT /jobservice/jobs/{job_id}`

## Request

- Base URL: `http://localhost/api/v2.0`
- URL: `http://localhost/api/v2.0/jobservice/jobs/{job_id}`
- Auth: one of:
  - HTTP basic
  - none
- TypeScript: <https://skmtc.dev/goharbor/apis/harbor-api/docs/jobservice/jobs/:job_id/put.ts> (a function with typed inputs; its response is checked against the schema)

Stop running job

## Path parameters

- `job_id` string, required

## Headers

- `X-Request-Id` string

## Response `200`

Stop worker successfully.

## Other responses

- `401`: Unauthorized. Authentication is required to access this resource.
- `403`: Forbidden. The caller does not have sufficient permission to perform the requested operation.
- `404`: Not found. The requested resource does not exist.
- `500`: Internal server error. Inspect the `errors` array in the response body for details.

---

[API](https://skmtc.dev/goharbor/apis/harbor-api.md) - [All operations](https://skmtc.dev/goharbor/apis/harbor-api/llms.txt) - [OpenAPI document](https://skmtc.dev/goharbor/apis/harbor-api/revisions/6198c63d2dee?raw)
