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
- application/json
Body
required
setUiConfigSchema
frontendSettings object
Responses
- 200
This response has no body.
Authorization
name: Authorizationtype: apiKeyin: header
Request
Request
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": [
"*"
]
}
}'
python / requests
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": [
"*"
]
}
}'
go / native
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": [
"*"
]
}
}'
nodejs / axios
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": [
"*"
]
}
}'
ruby / Net::HTTP
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": [
"*"
]
}
}'
csharp / RestSharp
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": [
"*"
]
}
}'
php / 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": [
"*"
]
}
}'
java / OkHttp
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": [
"*"
]
}
}'
powershell / RestMethod
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": [
"*"
]
}
}'