Change a member's roleDangerous
https://api.floconnector.com/v1/members/{id}- Scope
members.manage- Rate limit
- the key's write budget, 60 a minute
members.manage is a dangerous scope: off by default, granted only by an owner, and every call under it is recorded.
The new role applies to every workspace the person reaches, and any per-person permission overrides they held are cleared. The owner rules still apply: the primary owner cannot be changed, an owner can only step down themselves, and only an owner can make someone an owner, so a key can do none of these (403 forbidden). {id} is the member's user_id.
Path parameters
The member's USER id.
Body
The fields it takes:
roleenumoptionalThe ladder role.
owneradminmemberrole_idstring (uuid)optionalA named role instead of role.
Responses
200Success
memberobjectThe member with their new role.
ShowHide 10 fields
user_idstringThe person's user id: the {id} of PATCH /v1/members/{id} and DELETE /v1/members/{id}.
emailstringTheir sign-in email.
namestringnullableTheir display name. Null until they set one.
is_primarybooleanTrue for the primary owner, the person who created the account. Their role cannot be changed and they cannot be removed.
roleenumTheir position on the role ladder: owner, admin or member. A named role stands on one of the three, and the owner rules read this.
owneradminmemberrole_idstringThe id of the named role they hold.
role_namestringThat role's name.
grantsarray of objectEvery scope the person reaches, oldest first: the whole account or single workspaces. Never empty.
ShowHide 5 fields of each item
membership_idstringThe grant's id.
workspace_idstringnullableThe workspace this grant reaches. Null means the whole account, including workspaces created later.
workspace_namestringnullableThat workspace's name. Null for a whole-account grant.
connection_countintegerConnections this person authorized within the grant's reach. Removing the grant deletes them.
created_atstringWhen the grant was made, ISO 8601 timestamp.
connections_by_workspacemap of integerHow many connections this person authorized in each workspace of the account, keyed by workspace id. Workspaces with none are left out.
created_atstringWhen they joined the account (their earliest grant), ISO 8601 timestamp.
400validation: a field failed validation; field names it.
Every error has the same envelope:
errorobjectShowHide 5 fields
codeenumWhat went wrong, as a stable word. Branch on this, never on message.
unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternalmessagestringThe same thing in a sentence, written for a person.
fieldstringoptionalvalidation only: the field that failed, as a path into the request.
requiredstringoptionalinsufficient_scope only: the scope the route needs.
detailsobjectoptionalExtra structure some errors carry, such as a refused record batch's per-record errors.
401unauthorized: no key, or an unknown, revoked or expired key.
Every error has the same envelope:
errorobjectShowHide 5 fields
codeenumWhat went wrong, as a stable word. Branch on this, never on message.
unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternalmessagestringThe same thing in a sentence, written for a person.
fieldstringoptionalvalidation only: the field that failed, as a path into the request.
requiredstringoptionalinsufficient_scope only: the scope the route needs.
detailsobjectoptionalExtra structure some errors carry, such as a refused record batch's per-record errors.
403insufficient_scope: the key lacks the route's scope, named in required. Or forbidden, or plan_limit when the plan does not include the API.
Every error has the same envelope:
errorobjectShowHide 5 fields
codeenumWhat went wrong, as a stable word. Branch on this, never on message.
unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternalmessagestringThe same thing in a sentence, written for a person.
fieldstringoptionalvalidation only: the field that failed, as a path into the request.
requiredstringoptionalinsufficient_scope only: the scope the route needs.
detailsobjectoptionalExtra structure some errors carry, such as a refused record batch's per-record errors.
404not_found: the thing is not in this workspace.
Every error has the same envelope:
errorobjectShowHide 5 fields
codeenumWhat went wrong, as a stable word. Branch on this, never on message.
unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternalmessagestringThe same thing in a sentence, written for a person.
fieldstringoptionalvalidation only: the field that failed, as a path into the request.
requiredstringoptionalinsufficient_scope only: the scope the route needs.
detailsobjectoptionalExtra structure some errors carry, such as a refused record batch's per-record errors.
429rate_limited: the key's per-minute budget is spent. Retry after Retry-After seconds.
Every error has the same envelope:
errorobjectShowHide 5 fields
codeenumWhat went wrong, as a stable word. Branch on this, never on message.
unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternalmessagestringThe same thing in a sentence, written for a person.
fieldstringoptionalvalidation only: the field that failed, as a path into the request.
requiredstringoptionalinsufficient_scope only: the scope the route needs.
detailsobjectoptionalExtra structure some errors carry, such as a refused record batch's per-record errors.
Errors lists every error code and what to do about it.