> ## Documentation Index
> Fetch the complete documentation index at: https://partner-help.letsdothis.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update member details

> Updates a member's details on this seat. Only the properties you send change.

## How to use it

- You can update `firstName`, `lastName`, `phone`, `address`, `dateOfBirth`, `gender` and `customFields`. Email can't be changed, and unknown properties are refused.
- `null` clears a phone, address, date of birth or optional gender. An address update keeps the parts you don't send.
- Read the seat's [membership form](/api-reference/endpoints/membership/read-the-membership-custom-field-form) for custom field ids, which fields are editable, answer shapes and options. Send each custom field once, using its `answerShape`. An id without an answer clears an optional field.
- `gender` uses the recognized gender question and its options. Don't send that question in `customFields` as well.
- If any answer is invalid, nothing is updated.

> [!NOTE]
>
> This endpoint is in beta: its request and response contract can still change while it's being developed.


## OpenAPI

````yaml /openapi.json patch /v0/membership-seats/{seatId}
openapi: 3.1.0
info:
  title: Let's Do This API
  version: 0.1.0
  description: >
    The full reference — getting started, pagination, error responses, rate
    limits and the changelog — lives at

    [partner-help.letsdothis.com/api-reference](https://partner-help.letsdothis.com/api-reference/overview).

    This page is the interactive OpenAPI view of the same specification.


    # Authentication


    Create an API key from **Settings** → **Credentials** in your Let's Do This
    account and send it as a bearer token:


    ```bash

    curl --request GET \
     --url "https://api.letsdothis.com/v0/participants" \
     --header "Authorization: Bearer YOUR-API-KEY"
    ```


    Keep the key secret: it identifies your organization, so do not ship it in a
    website or native app. If a key is exposed,

    revoke it from the same section and create a replacement.


    # OpenAPI schema


    Download the [OpenAPI schema](https://api.letsdothis.com/documentation/json)
    to use with Postman or an OpenAPI client

    generator.
servers:
  - url: https://api.letsdothis.com
    description: Production
  - url: https://api.staging.letsdothis.com
    description: Staging
security:
  - bearerAuth: []
tags:
  - name: Events
    x-group: Events
    description: Events that participants can register for.
  - name: EventOccurrences
    x-group: Event occurrences
    description: >-
      Event occurrences scoped to the organizer associated with your Public API
      credentials. Unlike the public Events catalog, results are limited to your
      own events.
  - name: Races
    x-group: Races
    description: >-
      Races within an event occurrence. An event occurrence may have one or more
      races, for example a 5K and a 10K within the same race day.
  - name: Tickets
    x-group: Tickets
    description: Tickets that are available for events.
  - name: BookingForms
    x-group: Booking forms
    description: >-
      Booking forms define the questions a booker answers when registering for a
      ticket. A ticket usually references a single booking form, so expect zero
      or one, while a booking form may be shared across multiple tickets.
  - name: BookingFormFields
    x-group: Booking form fields
    description: >-
      Booking form fields are the individual questions on a booking form — their
      type, label, options, and whether an answer is required. A field can be
      reused across multiple forms.
  - name: Bookings
    x-group: Bookings
    description: >-
      Bookings are the transaction record for a registration. A booking may
      contain one or more participants (entries).
  - name: Membership
    x-group: Memberships
    description: >-
      Membership schemes, purchased policies and the seats on them, owned by
      your organizer. Policies are billing contracts; a seat is one person's
      place on a policy.
  - name: Participant
    x-group: Participants
    description: Participants are users who successfully booked an event.
  - name: LineItem
    x-group: Line items
    description: Financial details related to individual items within transactions.
  - name: AddOns
    x-group: Add-ons
    description: >-
      Your add-on products, such as merchandise or extras, that participants buy
      with their entry. Imported products keep the ids you gave them.
  - name: DiscountCodes
    x-group: Discount codes
    description: >-
      Discount codes participants enter at checkout to reduce the price of a
      booking.
  - name: Credits
    x-group: Credits
    description: >-
      Credits are balances participants can spend at checkout, identified by
      their email address.
  - name: Referrals
    x-group: Referrals
    description: >-
      Referral programs, the referrers registered on them, and asynchronous
      imports of historical referrals.
  - name: Teams
    x-group: Teams
    description: >-
      Teams group participants of an event occurrence under a team program.
      Teams can be imported for participants whose bookings were imported.
  - name: Application
    x-group: Applications
    description: >-
      Applications are created when a user applies for tickets that are set up
      to require an application process, such as balloted or "Good For Age"
      entries.
  - name: Partner
    x-group: Partners
    description: >-
      Partners that were created by the organization who can have Reserved
      Entries assigned to them.
  - name: ReservedEntries
    x-group: Reserved entries
    description: >-
      Reserved Entries are entries that are reserved for a partner. After being
      assigned, the partner can then allocate these entries to participants.
  - name: Timing
    x-group: Timing
    description: >-
      Timing providers push bib numbers and bib-pack shipments back to Let's Do
      This for the startlist entries they received. Available to select timing
      partners only.
  - name: Identity
    x-group: API key
    description: >-
      What your API key can reach. Available to every key, including scoped
      ones.
paths:
  /v0/membership-seats/{seatId}:
    patch:
      tags:
        - Membership
      summary: Update member details
      description: >-
        Updates a member's details on this seat. Only the properties you send
        change.


        ## How to use it


        - You can update `firstName`, `lastName`, `phone`, `address`,
        `dateOfBirth`, `gender` and `customFields`. Email can't be changed, and
        unknown properties are refused.

        - `null` clears a phone, address, date of birth or optional gender. An
        address update keeps the parts you don't send.

        - Read the seat's [membership
        form](/api-reference/endpoints/membership/read-the-membership-custom-field-form)
        for custom field ids, which fields are editable, answer shapes and
        options. Send each custom field once, using its `answerShape`. An id
        without an answer clears an optional field.

        - `gender` uses the recognized gender question and its options. Don't
        send that question in `customFields` as well.

        - If any answer is invalid, nothing is updated.
      parameters:
        - schema:
            type: string
            pattern: ^[a-fA-F0-9]{24}$
          in: path
          name: seatId
          required: true
          description: >-
            The id of a membership seat, one person's place on a policy, as List
            membership seats returns it.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MembershipSeatDetailsUpdate'
      responses:
        '200':
          description: The member's details on the seat, as updated.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MembershipSeatDetails'
        '400':
          description: >-
            A field is missing or malformed, or can't be changed. `message` says
            which.
          content:
            application/json:
              schema:
                type: object
                required:
                  - code
                  - statusCode
                  - message
                properties:
                  code:
                    type: string
                    enum:
                      - MEMBERSHIP_INVALID_REQUEST
                  statusCode:
                    type: integer
                    enum:
                      - 400
                  message:
                    type: string
        '404':
          description: Your organization has no membership seat with this id.
          content:
            application/json:
              schema:
                type: object
                required:
                  - code
                  - statusCode
                  - message
                properties:
                  code:
                    type: string
                    enum:
                      - MEMBERSHIP_RESOURCE_NOT_FOUND
                  statusCode:
                    type: integer
                    enum:
                      - 404
                  message:
                    type: string
components:
  schemas:
    MembershipSeatDetailsUpdate:
      title: MembershipSeatDetailsUpdate
      type: object
      properties:
        firstName:
          type: string
        lastName:
          type: string
        phone:
          anyOf:
            - $ref: '#/components/schemas/MembershipSeatPhone'
            - type: 'null'
        address:
          anyOf:
            - type: object
              properties:
                line1:
                  type: string
                line2:
                  type: string
                city:
                  type: string
                county:
                  type: string
                postcode:
                  type: string
                country:
                  type: string
              additionalProperties: false
            - type: 'null'
        dateOfBirth:
          type:
            - string
            - 'null'
        gender:
          type:
            - string
            - 'null'
          description: >-
            Answer the recognized gender question using its accepted options.
            null clears an optional answer.
        customFields:
          type: array
          items:
            $ref: '#/components/schemas/MembershipSeatCustomFieldUpdate'
          description: >-
            Only listed fields change. Read the seat's /form endpoint for IDs
            and accepted answers.
      additionalProperties: false
      description: >-
        Only the properties sent change, including address parts: omitted parts
        are kept and an empty string clears one. null clears a phone, address or
        date of birth.
    MembershipSeatDetails:
      title: MembershipSeatDetails
      type: object
      properties:
        id:
          type: string
        gender:
          type:
            - string
            - 'null'
          description: >-
            The recognized gender question's answer, or null when absent or
            unreadable.
        firstName:
          type:
            - string
            - 'null'
        lastName:
          type:
            - string
            - 'null'
        emailAddress:
          type:
            - string
            - 'null'
          description: >-
            The account email. Read-only; staff move a seat to another account
            from the dashboard.
        phone:
          anyOf:
            - $ref: '#/components/schemas/MembershipSeatPhone'
            - type: 'null'
        address:
          anyOf:
            - $ref: '#/components/schemas/MembershipSeatAddress'
            - type: 'null'
        dateOfBirth:
          type:
            - string
            - 'null'
          description: ISO date (YYYY-MM-DD). Null when none is recorded.
        customFields:
          type: array
          items:
            $ref: '#/components/schemas/MembershipSeatCustomField'
      required:
        - id
        - gender
        - firstName
        - lastName
        - emailAddress
        - phone
        - address
        - dateOfBirth
        - customFields
      additionalProperties: false
      description: >-
        Core details are top-level; every other question on the organiser's
        membership form is a custom field.
    MembershipSeatPhone:
      title: MembershipSeatPhone
      type: object
      properties:
        countryCode:
          type: string
          description: >-
            ISO 3166-1 alpha-2 country code, such as `DK` or `GB`; not a
            dialling code.
        number:
          type: string
          description: >-
            The number as the member entered it, which may be in national
            format, such as `07700900123` for `GB`. Combine it with
            `countryCode` using a phone-number library to call or text.
      required:
        - countryCode
        - number
      additionalProperties: false
    MembershipSeatCustomFieldUpdate:
      title: MembershipSeatCustomFieldUpdate
      type: object
      additionalProperties: false
      properties:
        id:
          type: string
        value:
          type: string
        values:
          type: array
          items:
            type: string
      required:
        - id
    MembershipSeatAddress:
      title: MembershipSeatAddress
      type: object
      properties:
        line1:
          type:
            - string
            - 'null'
        line2:
          type:
            - string
            - 'null'
        city:
          type:
            - string
            - 'null'
        county:
          type:
            - string
            - 'null'
        postcode:
          type:
            - string
            - 'null'
        country:
          type:
            - string
            - 'null'
      required:
        - line1
        - line2
        - city
        - county
        - postcode
        - country
      additionalProperties: false
    MembershipSeatCustomField:
      title: MembershipSeatCustomField
      type: object
      properties:
        id:
          type: string
          description: The form field id, as in a participant's `fields`.
        name:
          type: string
        value:
          type:
            - string
            - 'null'
          description: The member's answer as text; null when there is none.
      required:
        - id
        - name
        - value
      additionalProperties: false
      description: An answer to one custom question on the membership form.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.