Skip to content

Partially update an account

Request

Partially update an account using accountId. Only non-null fields in the request will be updated. This is optimized for small, incremental changes.

Security
mms
Path
accountIdstringrequired
Bodyapplication/jsonrequired
emailstring

The Member email address. It should be unique within the gym chain.

firstNamestring

The Member first name.

Example:"John"
lastNamestring

The Member last name.

Example:"Wick"
dateOfBirthstring, (date)

The Member date of birth. format: yyyy-MM-dd

genderstring

The Member gender. Please note that NON_BINARY is not correctly supported yet, we send it as FEMALE for the usage of the machines.

Enum:"MALE""FEMALE""NON_BINARY"
contactobject(ContactDTO)

The user's contact information

membershipobject(PatchMembershipDTO)

The membership details.

curl -i -X PATCH \
  'https://developer.egym.com/_mock/mms-api-v2/apis/mms-v2/api/v2/accounts/{accountId}' \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: YOUR_API_KEY_HERE' \
  -d '{
    "email": "string",
    "firstName": "John",
    "lastName": "Wick",
    "dateOfBirth": "2019-08-24",
    "gender": "MALE",
    "contact": {
      "phone": "string",
      "street": "string",
      "streetNumber": "string",
      "zipCode": "string",
      "city": "string",
      "state": "string",
      "country": "DE"
    },
    "membership": {
      "membershipId": "string",
      "agreementNumber": "string",
      "membershipType": "BASIC",
      "membershipSubType": "string",
      "endOfContract": "2019-08-24",
      "startOfContract": "2019-08-24",
      "referringMemberId": "string",
      "barcode": "string"
    }
  }'

Responses

No Content

Response
No content