Skip to main content

Set UI configuration

POST <your-unleash-url>/api/admin/ui-config

Authorization

name: Authorizationtype: apiKeyin: header

Sets the UI configuration for this Unleash instance.

Request

Body

required

setUiConfigSchema

  • frontendSettings object

    Settings related to the front-end API.

  • frontendApiOrigins string[] required

    The list of origins that the front-end API should accept requests from.

Responses

This response has no body.

Authorization

name: Authorizationtype: apiKeyin: header

Request

Base URL
<your-unleash-url>
apiKey
Body required
{
"frontendSettings": {
"frontendApiOrigins": [
"*"
]
}
}
curl / cURL
curl -L -X POST '<your-unleash-url>/api/admin/ui-config' \
-H 'Content-Type: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"frontendSettings": {
"frontendApiOrigins": [
"*"
]
}
}'