---
title: "Partially update an account"
method: PATCH
path: "/api/v2/accounts/{accountId}"
tags: ["Member Account"]
---

# Partially update an account

`PATCH /api/v2/accounts/{accountId}`

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

## Path parameters

- `accountId` string, required

## Request body

- PatchMemberAccountDTO
  - `email` string — The Member email address. It should be unique within the gym chain.
  - `firstName` string — The Member first name.
  - `lastName` string — The Member last name.
  - `dateOfBirth` string, date — The Member date of birth. format: yyyy-MM-dd
  - `gender` 'MALE' | 'FEMALE' | 'NON_BINARY' — The Member gender. Please note that NON_BINARY is not correctly supported yet, we send it as FEMALE for the usage of the machines.
  - `contact` ContactDTO
    - `phone` string — The Member telephone number.
    - `street` string — Street name in member's address.
    - `streetNumber` string — Street number in member's address.
    - `zipCode` string — Zip Code in member's address.
    - `city` string — City in member's address.
    - `state` string — State in member's address.
    - `country` string — Country of the member's address in ISO 3166-1 alpha-2.
  - `membership` PatchMembershipDTO
    - `membershipId` string — Member ID in the gym software. It must be unique for exactly one member in the gym chain.
    - `agreementNumber` string — The agreement number is the number of the membership between the member and the gym chain.
    - `membershipType` 'BASIC' | 'PREMIUM' | 'PROSPECT' | 'CORPORATE_FITNESS' — Type of the member's membership to determine available features.
    - `membershipSubType` string — Extension of membershipStatus for further customization for this user. One membershipStatus can have multiple membershipSubType.
    - `endOfContract` string, date — Date when the member's contract ends. For gyms with automatic contract renewal, send the date when the contract would run out, if cancelled. Update the field when the contract was renewed (manually and automatically renewals). format: yyyy-MM-dd. Must be on or after startOfContract if provided.
    - `startOfContract` string, date — The date when the membership started. format: yyyy-MM-dd
    - `referringMemberId` string — MembershipId of the member who referred this member.
    - `barcode` string — Member's barcode to check-in in the gym. Can be visualised on the Branded Member App and used for lookup to verify membership.

## Response `204`

No Content

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `409` — Conflict
- `500` — Internal Server Error

---

[API](https://skmtc.net/egym/apis/mms-api-v2.md) · [All operations](https://skmtc.net/egym/apis/mms-api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/egym/mms-api-v2/versions/07d571d34bd8/schema)
