# Member Account

These operations are needed to create and update member accounts and their membership information.

 - [GET /api/v2/accounts/{accountId}](https://developer.egym.com/mms-api-v2/apis/mms-v2/member-account/retrieveaccount.md): Retrieve an account using accountId.
 - [PUT /api/v2/accounts/{accountId}](https://developer.egym.com/mms-api-v2/apis/mms-v2/member-account/updateaccount.md): Update an account using accountId.
 - [DELETE /api/v2/accounts/{accountId}](https://developer.egym.com/mms-api-v2/apis/mms-v2/member-account/eraseaccountmembershipdata.md): Delete an account using accountId. eraseMemberData parameter is optional and defaults to false. If set to true it removes all member data that belongs to a gym (personal data, contract data, rfid, pro
 - [PATCH /api/v2/accounts/{accountId}](https://developer.egym.com/mms-api-v2/apis/mms-v2/member-account/partialupdate.md): Partially update an account using accountId. Only non-null fields in the request will be updated. This is optimized for small, incremental changes.
 - [PUT /api/v2/accounts/{accountId}/images](https://developer.egym.com/mms-api-v2/apis/mms-v2/member-account/uploadimage.md): This endpoint allows to upload a profile picture to the specified user using accountId (Supported formats: JPG, JPEG, PNG. Max file size: 16MB)
 - [DELETE /api/v2/accounts/{accountId}/images](https://developer.egym.com/mms-api-v2/apis/mms-v2/member-account/deleteimage.md): This endpoint allows to delete a profile picture of the specified user using accountId
 - [GET /api/v2/accounts](https://developer.egym.com/mms-api-v2/apis/mms-v2/member-account/listaccounts.md): Request all member accounts with paginated response. Result is always ordered by update timestamp (DESC). By default only accounts of the current gym are returned, otherwise set `currentGymOnly` to fa
 - [POST /api/v2/accounts](https://developer.egym.com/mms-api-v2/apis/mms-v2/member-account/publishaccount.md): Create an account in the EGYM System.
 - [GET /api/v2/accounts/{accountId}/roles](https://developer.egym.com/mms-api-v2/apis/mms-v2/member-account/getroles.md): Retrieve an account roles in the current gym for given accountId
 - [POST /api/v2/accounts/{accountId}/roles](https://developer.egym.com/mms-api-v2/apis/mms-v2/member-account/assignroles.md): Update an account roles using accountId.
 - [GET /api/v2/accounts/rfid/{rfid}](https://developer.egym.com/mms-api-v2/apis/mms-v2/member-account/getbyrfid.md): Retrieve an account using RFID.
 - [GET /api/v2/accounts/nfc/{nfc}](https://developer.egym.com/mms-api-v2/apis/mms-v2/member-account/getbynfc.md): Retrieve an account using NFC.
 - [GET /api/v2/accounts/membership/{membershipId}](https://developer.egym.com/mms-api-v2/apis/mms-v2/member-account/retrieveaccountbymembershipid.md): Retrieve an account using membershipId.
 - [GET /api/v2/accounts/email/{email}](https://developer.egym.com/mms-api-v2/apis/mms-v2/member-account/getbyemail.md): Retrieve an account using email.
