Skip to content

Update Member

Endpoint used to update a member of the institution.

Terminal window
curl --request PUT \
--url https://chat.api.toolzz.com.br/api/v2/member/id/{id} \
--header 'Authorization: Bearer TOKEN_HERE' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"email": "<string>",
"access": "<string>"
}
'
{
"message": "<string>",
"id": "<string>",
"institutionId": "<string>",
"unityId": "<string>",
"userId": "<string>",
"name": "<string>",
"email": "<string>",
"access": "<string>",
"status": 123,
"acceptedAt": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"user": {
"id": "<string>",
"name": "<string>",
"email": "<string>",
"avatar": "<string>"
},
"avatar": "<string>"
}

ParameterTypeDescriptionRequired
AuthorizationStringAccess token (“Bearer” must be before the token)Yes
ParameterTypeDescriptionRequired
idUUIDUnique member identifier.Yes
ParameterTypeDescriptionRequired
nameStringMember name.No
emailStringMember email.No
accessStringMember access level.No
KeyTypeDescription
messageStringInformative message about the operation status.
idUUIDUnique identifier of the member’s link record.
institutionIdUUIDIdentifier of the institution the member belongs to.
unityIdUUIDIdentifier of the linked unit.
userIdUUIDGlobal user identifier in the system.
nameStringUser name as registered in the invitation/link.
emailStringMember’s email address.
accessStringAssigned permission level (e.g., admin, owner, member).
statusNumberNumeric status code (e.g., 1 for active, 0 for pending).
acceptedAtStringDate and time the invitation was accepted (ISO 8601).
createdAtStringRecord creation date and time.
updatedAtStringLast record modification date and time.
userObjectObject containing the consolidated user profile.
user.idUUIDUnique user ID within the profile object.
user.nameStringUser’s full name in the global profile.
user.emailStringUser’s primary email in the global profile.
user.avatarURLDirect link to the user’s avatar image.
avatarURLShortcut to the avatar URL at the root level of the response.

To access this endpoint, it is necessary to send a valid access token through the authorization header (Authorization) of the request. Additionally, the API is protected by other security measures to safeguard user data.

To access your access token, follow these steps:

  1. Log in to the ToolzzAI platform
  2. Click on “Settings”
  3. Click on “Access Token”
  4. Copy the access token

Access token page