---
title: "Replace organization JIT email domains"
method: PUT
path: "/api/organizations/{id}/jit/email-domains"
tags: ["Organizations"]
---

# Replace organization JIT email domains

`PUT /api/organizations/{id}/jit/email-domains`

Replace all just-in-time provisioning email domains for the organization with the given data.

## Path parameters

- `id` string, required

## Request body

- object
  - `emailDomains` string[], required — An array of email domains to replace existing email domains.

## Response `204`

The email domains were replaced successfully.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden

---

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