JavaScript SDK: swarmhit.workspaces.members.remove(workspaceId, memberId, params?)
Removes a member from the workspace, or revokes a pending invite. Pass
?type=invite (with the invite email as memberId) to revoke an invite;
type defaults to user. The workspace's owner, organization members
and the last admin cannot be removed here (400).
Authorization
bearerAuth AuthorizationBearer <token>
An API key created on the Access tokens page.
In: header
Path Parameters
id*string
memberId*string
The member's user id, or the invite email when type is invite.
Query Parameters
type?string
Whether memberId is a user (default) or a pending invite.
Default
"user"Value in
- "user"
- "invite"
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X DELETE "https://example.com/workspaces/string/members/string"{ "data": { "ok": true }}