---
title: "Revoke a role assignment from a user"
method: DELETE
path: "/api/v1/users/{id}/roles/{assignmentId}"
tags: ["Users"]
---

# Revoke a role assignment from a user

`DELETE /api/v1/users/{id}/roles/{assignmentId}`

Revoke a role assignment from a user

## Path parameters

- `id` string, uuid, required — The user ID
- `assignmentId` string, uuid, required — The role assignment ID

## Response `200`

Success

- UserSuccessMessage — Response with a success message
  - `success` boolean, required — Indicates if the request was successful
  - `data` object, required
    - `message` string, required — Success message

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found

## Changes

- **2026-06-16** `b372e7d5563d` — 1 info
  - endpoint added
- **2025-11-02** `919eb7a392aa` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/banqzinc/apis/quidkey-api/changes/api/v1/users/:id/roles/:assignmentId/delete.md)

---

[API](https://skmtc.dev/banqzinc/apis/quidkey-api.md) · [All operations](https://skmtc.dev/banqzinc/apis/quidkey-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/banqzinc/quidkey-api/revisions/f86d2bdbcb08/schema)
