---
title: "Remove the assignment from a single workflow"
method: PATCH
path: "/monitoring-workflows/{id}/unassign"
tags: ["MonitoringWorkflow"]
---

# Remove the assignment from a single workflow

`PATCH /monitoring-workflows/{id}/unassign`

Removes the current assignee from the monitoring workflow identified by `id`. Use this endpoint for single-workflow unassignment; use `PATCH /monitoring-workflows/unassign` for bulk unassignment. The workflow must not currently be in `REVIEWED_BY_CERTIFYOS` status — if it is, this endpoint returns HTTP 400 with `{"error": "..."}` rather than the unassignment result. Requires `MONITORING_WORKFLOW_ASSIGN` or `MONITORING_WORKFLOW_ASSIGN_SELF`. The `tenant-id` header is mandatory.

## Path parameters

- `id` string, required

## Headers

- `tenant-id` string, required

## Response `200`

Workflow unassigned: `{workflowId, error: null}`.

- UnassignmentResult — Result of an individual unassignment operation
  - `workflowId` string — ID of the monitoring workflow
  - `error` string — Error message if unassignment failed

## Other responses

- `400` — Bad request - Workflow is not in an unassignable state
- `401` — Unauthorized - Authentication required
- `403` — Forbidden - User does not have required permissions
- `404` — Monitoring workflow not found
- `500` — Internal Server Error - An unexpected error occurred

---

[API](https://skmtc.net/certifyos/apis/certify-api-layer.md) · [All operations](https://skmtc.net/certifyos/apis/certify-api-layer/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/certifyos/certify-api-layer/revisions/563848e0ecc0/schema)
