---
title: "Replace a member"
method: PUT
path: "/members/{key}"
tags: ["Members"]
---

# Replace a member

`PUT /members/{key}`

Modify the representation of a member so that it becomes completely as specified.
Unspecified attributes will be reset to their default empty values.

## Path parameters

- `key` string, required

## Request body

- object
  - `email` string, email, required — The member's NEW email address
  - `gender` string — m, f or o
  - `firstname` string
  - `lastname` string
  - `company` string
  - `language` string — en_ca or fr_ca
  - `birthdate` string — Format Y-m-d
  - `postalCode` string
  - `country` string
  - `note` string
  - `customFields` object

## Response `200`

Attributes of the replaced member

- Member
  - `id` integer
  - `firstname` string
  - `lastname` string
  - `company` string
  - `email` string, email
  - `gender` string — m, f or o
  - `language` string — en_ca or fr_ca
  - `joinedOn` string, nullable
  - `updatedOn` string, nullable
  - `consentType` string
  - `postalCode` string
  - `country` string — ISO 3166-1 alpha-2 country code
  - `note` string
  - `birthdate` string, nullable
  - `mailingsReceived` integer
  - `mailingsOpened` integer
  - `mailingsClicked` integer
  - `customFields` object

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `404` — Member not found

---

[API](https://skmtc.net/cyberimpact/apis/cyberimpact-api.md) · [All operations](https://skmtc.net/cyberimpact/apis/cyberimpact-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cyberimpact/cyberimpact-api/revisions/bf0b51ee8e8a/schema)
