---
title: "Atualizar permissões"
method: PUT
path: "/roles/{membershipId}"
tags: ["Roles"]
---

# Atualizar permissões

`PUT /roles/{membershipId}`

## Request

- Base URL: `https://api.contas.rdstationmentoria.com.br/rest`
- URL: `https://api.contas.rdstationmentoria.com.br/rest/roles/{membershipId}`
- Auth: HTTP bearer

Atualiza as permissões de um membro (usuário).

## Path parameters

- `membershipId` string, required

## Request body

- object
  - `roles` object[], required: Lista dos papéis
    - `appId` string, required: Identificador único do app
    - `role` string, nullable: Permissão associada ao membro

## Response `200`

Successful response

- object[]
  - `membershipId` string, required: Identificador único do membro
  - `appId` string, required: Identificador único do app
  - `role` string, nullable: Permissão associada ao membro
  - `createdBy` string, nullable: ID do usuário que criou o registro
  - `updatedBy` string, nullable: ID do usuário que atualizou o registro
  - `createdAt` string, date-time: Data de criação
  - `updatedAt` string, date-time: Data da última atualização

## Other responses

- `default`: Error response

## Changes

- **2026-10-21** `977959888866`: 2 info
  - the `createdAt` response's property default value changed from `2026-10-21T01:21:43.089Z` to `2026-10-21T03:13:48.923Z` for the status `200`
  - the `updatedAt` response's property default value changed from `2026-10-21T01:21:43.089Z` to `2026-10-21T03:13:48.923Z` for the status `200`
- **2026-10-21** `d7e37498de72`: 2 info
  - the `createdAt` response's property default value changed from `2026-10-21T00:14:32.576Z` to `2026-10-21T01:21:43.089Z` for the status `200`
  - the `updatedAt` response's property default value changed from `2026-10-21T00:14:32.576Z` to `2026-10-21T01:21:43.089Z` for the status `200`
- **2026-10-21** `b32a19e55538`: 2 info
  - the `createdAt` response's property default value changed from `2026-10-20T22:26:20.724Z` to `2026-10-21T00:14:32.576Z` for the status `200`
  - the `updatedAt` response's property default value changed from `2026-10-20T22:26:20.724Z` to `2026-10-21T00:14:32.576Z` for the status `200`
- **2026-10-20** `5b8f788589c7`: 2 info
  - the `createdAt` response's property default value changed from `2026-10-20T21:10:32.041Z` to `2026-10-20T22:26:20.724Z` for the status `200`
  - the `updatedAt` response's property default value changed from `2026-10-20T21:10:32.041Z` to `2026-10-20T22:26:20.724Z` for the status `200`
- …earlier changes not shown

[Operation history](https://skmtc.dev/rdstationmentoria/apis/accounts/changes/roles/:membershipId/put.md)

---

[API](https://skmtc.dev/rdstationmentoria/apis/accounts.md) · [All operations](https://skmtc.dev/rdstationmentoria/apis/accounts/llms.txt) · [OpenAPI document](https://skmtc.dev/rdstationmentoria/apis/accounts/revisions/977959888866?raw)
