Skip to main content
PUT
cURL
The whole permission set is replaced. Every permission that is not sent is set to false.

Authorizations

Authorization
string
header
required

Your CamposCloud API token, sent as Authorization: Bearer <token>.

Path Parameters

teamId
string
required

ID of the team the member belongs to

memberId
string
required

User ID of the member (members[].user._id of the team).

Body

application/json

New permissions of the member

permissions
object
required

Permissions to grant. Every permission that is left out is set to false. Unknown keys are rejected with 400.

Example:

Response

Permissions updated.

message
string
required

Human readable confirmation message.

Example:

"Permissões do membro atualizadas com sucesso!"