pagehive

update_member

Change a member's role (view, edit, build, publish), agents (whether their own agent may work on the site, within the role) and/or display_name (the name they go by on the site, which pages print with a members: site data header; null clears it).

MembersChanges dataAll plansUpdated

What it does

Change a member's role (view, edit, build, publish), agents (whether their own agent may work on the site, within the role) and/or display_name (the name they go by on the site, which pages print with a members: site data header; null clears it). 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.
display_namestring or nullThe name the member goes by on the site, at most 80 characters. Pages print it with a members: site data header. null clears it.

Example

Call update_member with these arguments:

{
  "site_id": "01a1…",
  "member_id": "01a1…",
  "display_name": "Ann de Vries"
}

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

Related guides