---
title: "Replace members of a customer organization"
method: PUT
path: "/customer-organizations/{id}/members"
tags: ["Organizations"]
---

# Replace members of a customer organization

`PUT /customer-organizations/{id}/members`

Replace all [customer](/customers/overview) in an existing customer organization. This action does not impact their membership in other organizations.

## Path parameters

- `id` string, required

## Headers

- `Authorization` string, required
- `sequence-version` '2024-07-30'

## Request body

- CustomerOrganizationMembers
  - `customerIds` string[], required — IDs of customers to add to an existing organization.

## Response `200`

OK

- CustomerOrganization
  - `id` string, required — Organization ID
  - `owner` CustomerIdWithName, required — ID of the customer that will own the organization.
    - `id` string, required — Customer ID
    - `name` string, required — Customer legal name
  - `members` CustomerIdWithName[], required — Members of the customer organization, excluding the owner. These are the children in a parent-child relationship.
    - `id` string, required — Customer ID
    - `name` string, required — Customer legal name

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `500` — Internal Server Error

---

[API](https://skmtc.net/sequencehq/apis/sequence.md) · [All operations](https://skmtc.net/sequencehq/apis/sequence/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sequencehq/sequence/versions/cae64b02699f/schema)
