Change a member's roleDangerous

PATCHhttps://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

string (uuid)required

The member's USER id.

Body

The fields it takes:

roleenumoptional

The ladder role.

owneradminmember
role_idstring (uuid)optional

A named role instead of role.

Responses

200Success
memberobject

The member with their new role.

ShowHide 10 fields
user_idstring

The person's user id: the {id} of PATCH /v1/members/{id} and DELETE /v1/members/{id}.

emailstring

Their sign-in email.

namestringnullable

Their display name. Null until they set one.

is_primaryboolean

True for the primary owner, the person who created the account. Their role cannot be changed and they cannot be removed.

roleenum

Their position on the role ladder: owner, admin or member. A named role stands on one of the three, and the owner rules read this.

owneradminmember
role_idstring

The id of the named role they hold.

role_namestring

That role's name.

grantsarray of object

Every scope the person reaches, oldest first: the whole account or single workspaces. Never empty.

ShowHide 5 fields of each item
membership_idstring

The grant's id.

workspace_idstringnullable

The workspace this grant reaches. Null means the whole account, including workspaces created later.

workspace_namestringnullable

That workspace's name. Null for a whole-account grant.

connection_countinteger

Connections this person authorized within the grant's reach. Removing the grant deletes them.

created_atstring

When the grant was made, ISO 8601 timestamp.

connections_by_workspacemap of integer

How many connections this person authorized in each workspace of the account, keyed by workspace id. Workspaces with none are left out.

created_atstring

When they joined the account (their earliest grant), ISO 8601 timestamp.

400validation: a field failed validation; field names it.

Every error has the same envelope:

errorobject
ShowHide 5 fields
codeenum

What went wrong, as a stable word. Branch on this, never on message.

unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternal
messagestring

The same thing in a sentence, written for a person.

fieldstringoptional

validation only: the field that failed, as a path into the request.

requiredstringoptional

insufficient_scope only: the scope the route needs.

detailsobjectoptional

Extra 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:

errorobject
ShowHide 5 fields
codeenum

What went wrong, as a stable word. Branch on this, never on message.

unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternal
messagestring

The same thing in a sentence, written for a person.

fieldstringoptional

validation only: the field that failed, as a path into the request.

requiredstringoptional

insufficient_scope only: the scope the route needs.

detailsobjectoptional

Extra 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:

errorobject
ShowHide 5 fields
codeenum

What went wrong, as a stable word. Branch on this, never on message.

unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternal
messagestring

The same thing in a sentence, written for a person.

fieldstringoptional

validation only: the field that failed, as a path into the request.

requiredstringoptional

insufficient_scope only: the scope the route needs.

detailsobjectoptional

Extra 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:

errorobject
ShowHide 5 fields
codeenum

What went wrong, as a stable word. Branch on this, never on message.

unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternal
messagestring

The same thing in a sentence, written for a person.

fieldstringoptional

validation only: the field that failed, as a path into the request.

requiredstringoptional

insufficient_scope only: the scope the route needs.

detailsobjectoptional

Extra 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:

errorobject
ShowHide 5 fields
codeenum

What went wrong, as a stable word. Branch on this, never on message.

unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternal
messagestring

The same thing in a sentence, written for a person.

fieldstringoptional

validation only: the field that failed, as a path into the request.

requiredstringoptional

insufficient_scope only: the scope the route needs.

detailsobjectoptional

Extra 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.