---
title: "Revoke Roles"
method: POST
path: "/v1/roles/revoke"
---

# Revoke Roles

`POST /v1/roles/revoke`

## Request

- Base URL: `https://testapi.payarc.net`
- URL: `https://testapi.payarc.net/v1/roles/revoke`
- Auth: API key in header `Authorization`

## Headers

- `Accept` string, required
- `Content-Type` string, required

## Request body

- object
  - `user_id` string, required: IDs of the user.
  - `roles_ids` string[], required: IDs of roles that should be revoked from the User.

## Response `200`

200

- object
  - `data` object
    - `object` string
    - `id` string
    - `real_id` integer
    - `name` string
    - `email` string
    - `confirmed` boolean
    - `notification_phone_number` unknown
    - `created_at` integer
    - `updated_at` integer
    - `readable_created_at` string
    - `readable_updated_at` string
    - `response_content` boolean
    - `username` string
    - `role` unknown
  - `meta` object
    - `include` string[]
    - `custom` unknown[]
      - unknown

## Other responses

- `500`: 500

---

[API](https://skmtc.dev/payarc/apis/payarc-sandbox.md) - [All operations](https://skmtc.dev/payarc/apis/payarc-sandbox/llms.txt) - [OpenAPI document](https://skmtc.dev/payarc/apis/payarc-sandbox/revisions/d3ee769894e4?raw)
