Removes a member from the workspace. The user account stays, along with any other workspaces it belongs to. You cannot remove the last admin. Admin only.
Request#
| Field | Type | Required | Description |
|---|---|---|---|
id |
string | Yes | The member_id from List members. |
Example request#
curl -X DELETE https://api.tried.com.au/workspace/members/member_9e7c5a3f1d2b4c6e8a0f2d4b \
-H "Authorization: Bearer $TRIED_API_KEY"const res = await fetch("https://api.tried.com.au/workspace/members/member_9e7c5a3f1d2b4c6e8a0f2d4b", {
method: "DELETE",
headers: { Authorization: `Bearer ${process.env.TRIED_API_KEY}` },
});
console.log(res.status); // 204import os, requests
res = requests.delete(
"https://api.tried.com.au/workspace/members/member_9e7c5a3f1d2b4c6e8a0f2d4b",
headers={"Authorization": f"Bearer {os.environ['TRIED_API_KEY']}"},
)
print(res.status_code) # 204Response#
204 No Content
The response has no body.
Errors#
| Status | When |
|---|---|
400 |
A workspace needs at least one admin. |
401 |
Missing or invalid API key. |
403 |
The key's IP allowlist or scopes reject the request. This route needs the admin scope. A dashboard user without the right role gets Requires role: admin. API keys act as admin. |
404 |
Member not found. |
429 |
Rate limit exceeded. See Rate limits. |
See Errors for the body format.
To remove yourself, use Leave workspace.