Update a member
PUT
/users/{uid}users:write Enterprise
Changes a member's details or role. Only the fields you send change; an empty string
clears a field, except the name, which a member always keeps. Your own account cannot
be changed here.
Path parameters
uidstringrequiredThe ID of a member of your organisation.
Request body application/json
Fields of MemberUpdate:
fullNamestringat most 120 characterscompanystringat most 120 charactersaddressstringat most 300 characterszipCodestringat most 20 characterscountrystringat most 80 charactersphoneNumberstringat most 40 charactersenterpriseRolestringA member's role in the organisation.useris shown as Member in the app.One ofadminmanageruserviewermetadataobject (any fields)Your own data about the member, such as their ID in your CRM. Replaces what was there.
Responses
successbooleanrequiredAlwaystrue
Errors
A failed request answers with one of these, in an Error body.
400
invalid_bodyA value in the request body is missing, has the wrong type, is too long or is not one of the accepted values.401
unauthorized_actionThe item is not on your account or your members', the request came from a web page on a website the key does not allow, or the action is not allowed for this person.403
insufficient_scopeThe key does not have the access this endpoint needs. Create a key with that access.Try it
This key is
The key stays in this tab and goes only to the API. Use a sandbox key while you try things: requests are real, and what they change is changed.
The ID of a member of your organisation.
PUT https://api.measuremaponline.com/api/v1/users/m3K8qZxLpV4NrT2wFill in your API key to send.
As a cURL command
curl -X PUT 'https://api.measuremaponline.com/api/v1/users/m3K8qZxLpV4NrT2w' \
-H "Authorization: $MMO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"phoneNumber": "+44 20 7946 0958",
"enterpriseRole": "manager"
}'