---
title: "PATCH /spaces/{spaceId}/roles"
method: PATCH
path: "/spaces/{spaceId}/roles"
---

# PATCH /spaces/{spaceId}/roles

`PATCH /spaces/{spaceId}/roles`

Remove a role from multiple users or groups in a private re:Post.

## Path parameters

- `spaceId` string, required

## Request body

- object
  - `accessorIds` AccessorId[], required — The user or group accessor identifiers to remove the role from.
  - `role` 'EXPERT' | 'MODERATOR' | 'ADMINISTRATOR' | 'SUPPORTREQUESTOR', required — The role to remove from the users or groups.

## Response `200`

Success

- BatchRemoveRoleOutput
  - `removedAccessorIds` AccessorId[], required — An array of successfully updated accessor identifiers.
  - `errors` BatchError[], required — An array of errors that occurred when roles were removed.
    - `accessorId` string, required — The accessor identifier that's related to the error.
    - `error` integer, required — The error code.
    - `message` string, required — Description of the error.

## Other responses

- `480` — ValidationException
- `481` — AccessDeniedException
- `482` — ResourceNotFoundException
- `483` — ThrottlingException
- `484` — InternalServerException

---

[API](https://skmtc.net/aws/apis/repostspace.md) · [All operations](https://skmtc.net/aws/apis/repostspace/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/repostspace/versions/1b4ca9ef5474/schema)
