Skip to main content

Set UI configuration

POST 

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

deprecated

This endpoint has been deprecated and may be replaced or removed in future versions of the API.

Deprecated. Use ./cors instead. Sets the UI configuration for this Unleash instance.

Request

Bodyrequired

setUiConfigSchema

    frontendSettings object

    Settings related to the front-end API.

    frontendApiOriginsstring[]required

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

    Example: ["*"]

Responses

This response has no body.

Authorization: Authorization

name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API
curl -L '<your-unleash-url>/api/admin/ui-config' \
-H 'Content-Type: application/json' \
-H 'Authorization: <Authorization>' \
-d '{
"frontendSettings": {
"frontendApiOrigins": [
"*"
]
}
}'
Request Collapse all
Base URL
<your-unleash-url>
Auth
Body required
{
  "frontendSettings": {
    "frontendApiOrigins": [
      "*"
    ]
  }
}
ResponseClear

Click the Send API Request button above and see the response here!