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

# Unassign a job.

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

## Request

- Base URL: `{endpoint}`
- URL: `{endpoint}/routing/jobs/{jobId}/assignments/{assignmentId}:unassign`
- Auth: OAuth 2
  - Authorization code: `https://login.microsoftonline.com/common/oauth2/authorize`
  - Token URL: `https://login.microsoftonline.com/common/oauth2/token` scopes: `https://communication.azure.com/.default`

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.

## Changes

- **2026-07-13** `8ed418b2862d`: 1 info
  - endpoint added
- **2022-05-05** `8cbeaf5a7ce3`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/azure/apis/communication-jobrouter/changes/routing/jobs/:jobId/assignments/:assignmentId:unassign/post.md)

---

[API](https://skmtc.dev/azure/apis/communication-jobrouter.md) - [All operations](https://skmtc.dev/azure/apis/communication-jobrouter/llms.txt) - [OpenAPI document](https://skmtc.dev/azure/apis/communication-jobrouter/revisions/c06e8f55d8b7?raw)
