---
title: "Unassign a job."
method: POST
path: "/routing/jobs/{jobId}/assignments/{assignmentId}:unassign"
---

# Unassign a job.

`POST /routing/jobs/{jobId}/assignments/{assignmentId}:unassign`

Unassign a job.

## Path parameters

- `jobId` string, required
- `assignmentId` string, required

## Query parameters

- `api-version` string, required

## Request body

- UnassignJobOptions — Request payload for unassigning a job.
  - `suspendMatching` boolean — If SuspendMatching is true, then a job is not queued for re-matching with a worker.

## Response `200`

The request has succeeded.

- UnassignJobResult — Response payload after a job has been successfully unassigned.
  - `jobId` string, required — Id of an unassigned job.
  - `unassignmentCount` integer, required — The number of times a job is unassigned. At a maximum 3.

## Other responses

- `default` — An unexpected error response.

---

[API](https://skmtc.net/azure/apis/communication-jobrouter.md) · [All operations](https://skmtc.net/azure/apis/communication-jobrouter/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/communication-jobrouter/revisions/c06e8f55d8b7/schema)
