DELETE
/
api
/
v2
/
member
/
id
/
{id}
curl --request DELETE \
  --url https://chat.api.toolzz.com.br/api/v2/member/id/{id} \
  --header 'Authorization: Bearer <token>'
{
  "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>",
    "verified": true
  }
}

Body Description

id
string
required

The Id of the Member

User needs to be admin of institution

Response Description

Below you will see the description of the member response

message
string
required

Message indicating the result of the operation.

id
string
required

Unique identifier of the member.

institutionId
string
required

ID of the associated institution.

unityId
string
required

ID of the associated unity.

userId
string

Optional ID of the associated user.

name
string
required

Name of the member.

email
string
required

Email address of the member.

access
string
required

Access level of the member.

status
number
required

Status indicator, 1 for active, 0 for inactive.

acceptedAt
string
required

Timestamp indicating when the member was accepted.

createdAt
string
required

Timestamp indicating when the record was created.

updatedAt
string
required

Timestamp indicating when the record was last updated.

user
object

Details of the associated user (null if not available).

message
string
required

Successful message