edit member
API Support | Available since | Last updated | Output |
---|---|---|---|
Description
Edit a member.
This service is now deprecated, use /members/{member} [PATCH] instead.
Member details
Both the firstname and surname are limited to 50 characters.
The member-username must be less than 100 characters, unique and cannot contain a ‘@’. The username is required unless the email address is specified.
The email must be less than 100 characters, unique and be a valid Email address. The email address is required unless a username is specified.
The member details are only modified if they are specified in the request.
Password details
The member-password must be less than 100 characters. When the Password is not specified, the member’s email is used if no confirmation is needed, otherwise, a new password will be generated.
Passwords must satisfy a given strength check to be accepted:
- Regular members must have at least a MEDIUM strength.
- Administrators must use a STRONG password.
Users MUST include their current password using current-password to be able to change their password.
By default, an email is sent to the user when their password is changed; to override this behavior, set the password-email
to true
.
Parameters
Name | Description | Required | Type | Default |
---|---|---|---|---|
current-password | The member’s current password (required if a member-password or significant-date is specified unless admin) | maybe | string | |
The member’s email | no | string | ||
email-attachments | Set to true to send documents as email attachments instead of links | no | boolean | |
firstname | The member’s given name | no | string | |
force-email-change | Set to true to change the email address without notification (admin only) | no | boolean | false |
member-password | The member’s new password | no | string | |
member-username | The member’s username, defaults to the member's email | no | string | |
on-vacation | Set to true to stop notifications to this member | no | boolean | |
password-email | Set to false to change the password without notification (administrator only) | no | boolean | true |
surname | The member’s family name | no | string |
Permission
This service can only be invoked by the user herself or an Administrator .
Only administrators can change a password without having to submit the current password.
Response
<member-modification [email-change-confirm-sent-to="[new email]"]> <member id="[member id]" firstname="[first name]" surname="[surname]" username="[username]" email="[email]" status="[activated|unactivated|set-password]"> <fullname>[full name]</fullname> </member> </member-modification>