v1

latestOpenAPI 3.1.02026-08-064323122.5 KB
Member Account

Update an account

Update an account using accountId.

put/api/v2/accounts/{accountId}

Path parameters

accountIdstring required

Request body

accountIdstring

The EGYM account ID for the Gym Member.

emailstring required

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

firstNamestring required

The Member first name.

lastNamestring required

The Member last name.

dateOfBirthstring date

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

gender'MALE' | 'FEMALE' | 'NON_BINARY' required

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

Example request

{
  "firstName": "John",
  "lastName": "Wick",
  "contact": {
    "country": "DE"
  },
  "membership": {
    "corporateFitness": {
      "startTimestamp": "2021-03-08T18:26:47Z",
      "endTimestamp": "2021-03-08T18:26:47Z"
    }
  }
}

Response

Ok

accountIdstring

The EGYM account ID for the Gym Member.

emailstring required

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

firstNamestring required

The Member first name.

lastNamestring required

The Member last name.

dateOfBirthstring date

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

gender'MALE' | 'FEMALE' | 'NON_BINARY' required

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

Example response

{
  "firstName": "John",
  "lastName": "Wick",
  "contact": {
    "country": "DE"
  },
  "membership": {
    "corporateFitness": {
      "startTimestamp": "2021-03-08T18:26:47Z",
      "endTimestamp": "2021-03-08T18:26:47Z"
    }
  }
}