Update a member's role and partner assignments
PUT
/api/members/{id}
const url = 'https://example.com/api/members/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"role":"org_admin","partnerId":"20000000-0000-0000-0000-000000000002","phone":"+17045550199","profiles":["intake_staff","kiosk_operator"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://example.com/api/members/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "role": "org_admin", "partnerId": "20000000-0000-0000-0000-000000000002", "phone": "+17045550199", "profiles": [ "intake_staff", "kiosk_operator" ] }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
role
required
Assigned administrative user role (org_admin, partner_admin, staff).
string
partnerId
Unique identifier (UUID v4) for the assigned partner location facility.
string format: uuid
Example
20000000-0000-0000-0000-000000000002phone
E.164 formatted contact phone number.
string
Example
+17045550199profiles
Assigned functional operational access profiles.
Array<string>
Example
[ "intake_staff", "kiosk_operator"]Responses
Section titled “Responses”Member updated successfully
Media typeapplication/json
object
id
required
Unique identifier (UUID v4) for the resource.
string format: uuid
email
required
Primary email address.
string
fullName
Full legal or preferred name of the individual.
string
role
required
Assigned administrative user role (org_admin, partner_admin, staff).
string
partnerId
Unique identifier (UUID v4) for the assigned partner location facility.
string format: uuid
partnerName
Display name of the assigned partner location facility.
string
profiles
Assigned functional operational access profiles.
Array<string>
isConfirmed
required
Flag confirming whether user email address has been verified.
boolean
phone
E.164 formatted contact phone number.
string
Example
{ "id": "a1b2c3d4-e5f6-7890-abcd-1234567890ab", "fullName": "Sarah Jenkins", "role": "org_admin", "partnerId": "20000000-0000-0000-0000-000000000002", "partnerName": "Community Food Pantry", "profiles": [ "intake_staff", "kiosk_operator" ], "isConfirmed": true, "phone": "+17045550199"}Unauthorized
Forbidden