Remove a membership
delete
https://api.flactrum.com/v1/users/{user}
Removes access to this brand. The person's account is untouched — they may belong to other brands. The brand owner cannot be removed.
| Required scope | users.write |
| Success status | 204 |
Parameters
| Name | In | Type | Description |
|---|---|---|---|
| user * | path | string | ULID of the record. |
Examples
Recorded from the test suite — these are real requests and their real responses.
curl -X DELETE 'https://api.flactrum.com/v1/users/01m43mzqm1v2c0qpcfef1y5csk' \
-H 'Authorization: Bearer flk_your_key:your_secret' \
-H 'Accept: application/json'
HTTP 204
(empty body)
curl -X DELETE 'https://api.flactrum.com/v1/users/01m43mzqs7sar88y6zavzahk65' \
-H 'Authorization: Bearer flk_your_key:your_secret' \
-H 'Accept: application/json'
HTTP 409 · application/json
{
"error": {
"code": "conflict",
"message": "The brand owner's membership cannot be removed."
}
}