pagehive

update_member

Change a member's role (view, edit, build, publish) and/or agents (whether their own agent may work on the site, within the role).

MembersChanges dataAll plans

What it does

Change a member's role (view, edit, build, publish) and/or agents (whether their own agent may work on the site, within the role). Send at least one. It applies from the member's next click or call.

Plans

Works on every plan: Free, Basic, Pro and Ultra.

Parameters

NameTypeAbout
site_idrequiredstringThe id of the site. list_sites gives the ids of your sites.
member_idrequiredstringThe id of the member, from list_members.
roleone of: view, edit, build, publishThe new role: view, edit, build or publish.
agentsbooleantrue lets the member's own agent work on the site within their role; false stops it.

Example

Call update_member with these arguments:

{
  "site_id": "01a1…",
  "member_id": "01a1…",
  "role": "view"
}

Ids like 01a1… stand for your own. list_sites and list_tables give you the real ones.

Related guides