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
| Name | Type | About |
|---|---|---|
site_idrequired | string | The id of the site. list_sites gives the ids of your sites. |
member_idrequired | string | The id of the member, from list_members. |
role | one of: view, edit, build, publish | The new role: view, edit, build or publish. |
agents | boolean | true lets the member's own agent work on the site within their role; false stops it. |
display_name | string or null | The 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
- Site members and rolesInvite people by email and decide what they may do.
- Show your members on a pageList the people on your site, or put each writer's name under their articles.
- Open a site with a PINLet family or a group in without accounts.