---
title: "Update Allowed Email Domains"
method: PUT
path: "/api/v1/academies/{academy_id}/email_domains"
---

# Update Allowed Email Domains

`PUT /api/v1/academies/{academy_id}/email_domains`

## Request

- Base URL: `https://app.workramp.com`
- URL: `https://app.workramp.com/api/v1/academies/{academy_id}/email_domains`
- Auth: API key in header `Authorization`

Updates the list of allowed email domains that users can use to register. This endpoint overwrites the list, if you need to add or remove individual domains use the POST or DELETE endpoints. Send an empty list to remove all existing domains.

## Path parameters

- `academy_id` string, required

## Headers

- `Content-Type` string

## Request body

- object
  - `email_domains` string[], required: The list of allowed domains that users can use to register.

## Response `200`

200

- object
  - `emailDomainsAllowed` string[]
  - `emailDomainsAllowedEnabled` boolean
  - `emailDomainsBlocked` unknown[]
    - unknown
  - `emailDomainsBlockedEnabled` boolean

## Other responses

- `400`: 400

---

[API](https://skmtc.dev/workramp/apis/json-api.md) - [All operations](https://skmtc.dev/workramp/apis/json-api/llms.txt) - [OpenAPI document](https://skmtc.dev/workramp/apis/json-api/revisions/2cb77bf12793?raw)
