- Docs
- Api%2Freference%2Forganizations%2FDeleteMember
Remove a member
Remove a member from the organization, or withdraw an invitation that has not been accepted. Their wallet is untouched — they simply lose access to this organization's data. Anything they created stays with the organization. The last owner who has accepted cannot be removed; promote another member first. Requires the `organizations.members.delete` permission.
The access token returned after a successful sign-in, sent as
Authorization: Bearer <access_token>.
It identifies the person and the organization they are working in, and
it lasts about fifteen minutes. When it runs out, use their refresh
token at POST /auth/refresh-token instead of asking them to sign in
again.
In: header
Path Parameters
Identifier of the organization. Each endpoint states whether it must be the caller's active organization or may be used without authentication.
Identifier of the membership record, not of the member's wallet.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X DELETE "https://api.dual.network/organizations/665f1c2d4b1a2c3d4e5f6aa0/members/665f1c2d4b1a2c3d4e5f6a70"{}{
"code": 3,
"message": "Key: 'limit' Error:Field validation for 'limit' failed on the 'lte' tag"
}{
"code": 16,
"message": "no auth provided"
}{
"code": 5,
"message": "object not found"
}{
"code": 13,
"message": "internal error"
}