/sys/config/ui/headers
Restricted endpoint
The API path can only be called from the root namespace.The /sys/config/ui/headers
endpoint is used to configure UI header settings.
sudo
required – All of these endpoints require thesudo
capability in addition to any path-specific capabilities.
Read UI header settings
This endpoint returns the given UI header configuration.
Method | Path |
---|---|
GET | /sys/config/ui/headers/:name |
Parameters
name
(string: <required>)
– The name of the custom header.multivalue
(bool: <optional>)
- Returns multiple values if true.
Sample request
Sample response
Sample request (Multi value)
Sample response
Configure UI headers
This endpoint allows configuring the values to be returned for the UI header.
Method | Path |
---|---|
POST | /sys/config/ui/headers/:name |
Parameters
name
(string: <required>)
– The name of the custom header.values
(list: <required>)
- The values to be returned from the header.
Sample payload
Sample request
Delete a UI header
This endpoint removes a UI header.
Method | Path |
---|---|
DELETE | /sys/config/ui/headers/:name |
Sample request
List UI headers
This endpoint returns a list of configured UI headers.
Method | Path |
---|---|
LIST | /sys/config/ui/headers |
Sample request
Sample response