---
title: "Update allowed external hosts record"
method: PUT
path: "/gdc/securitySettings/allowedExtHosts/{id}"
tags: ["allowed-external-hosts"]
---

# Update allowed external hosts record

`PUT /gdc/securitySettings/allowedExtHosts/{id}`

## Request

- Base URL: `https://secure.gooddata.com`
- URL: `https://secure.gooddata.com/gdc/securitySettings/allowedExtHosts/{id}`
- Auth: none declared

## Path parameters

- `id` string, required

## Request body

- AllowedExtHosts
  - `allowedExtHosts` object, required
    - `scope` string, uri, required: Reference to the scope of the value. Possible values are: + Domain scope: `/gdc/domains/{domainId}` + Project scope: `/gdc/projects/{projectId}`
    - `name` string: Optional name for the specified record
    - `id` string: Generated ID
    - `value` string[], required: List of expressions to match allowed hosts

## Response `200`

Request successful

- AllowedExtHosts
  - `allowedExtHosts` object, required
    - `scope` string, uri, required: Reference to the scope of the value. Possible values are: + Domain scope: `/gdc/domains/{domainId}` + Project scope: `/gdc/projects/{projectId}`
    - `name` string: Optional name for the specified record
    - `id` string: Generated ID
    - `value` string[], required: List of expressions to match allowed hosts

## Other responses

- `302`: Request for HTML response successful
- `400`: The API call failed due to invalid parameters. Check the response for details.
- `401`: User is not authenticated.
- `403`: User is not allowed to execute the operation. Authorization is based on scope.
- `404`: Record with such id not found.
- `default`: Common error

---

[API](https://skmtc.dev/gooddata/apis/gooddata-api-documentation.md) - [All operations](https://skmtc.dev/gooddata/apis/gooddata-api-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/gooddata/apis/gooddata-api-documentation/revisions/e5dc0ee6ab00?raw)
