Update Appearance Configuration
Changed onUpdates the current appearance configuration for this portal including setting pre-defined or custom themes, fonts, colors, and images. Note that portals using the fully-customizable portal client may override or ignore these settings by disregarding them in the code.
Request
- Base URLhttps://global.api.konghq.com
- Auth
- HTTP bearer
- or HTTP bearer
- or HTTP bearer
- or HTTP bearer
Path parameters
The Portal identifier
Request body
Select a pre-existing default theme or specify 'custom' to use custom_theme variables.
Groups of variables for configuring visual details of the portal user interface. Set theme_name to 'custom' to use custom values for theme variables.
Font selections to render text in the portal user interface. Must set use_custom_fonts to true to enable using custom font values.
If true, fonts in custom_fonts will be used over the theme's default fonts
Values to display for customizable text in the portal user interface
A collection of binary image data to customize images in the portal
Example request
{
"theme_name": "custom",
"use_custom_fonts": true,
"custom_theme": {
"colors": {
"section": {
"header": {
"value": "#F8F8F8",
"description": "Background for header"
},
"body": {
"value": "#FFFFFF",
"description": "Background for main content"
},
"hero": {
"value": "#F8F8F8",
"description": "Background for hero section"
},
"accent": {
"value": "#F8F8F8",
"description": "Subtle background"
},
"tertiary": {
"value": "#FFFFFF",
"description": "Tertiary background"
},
"stroke": {
"value": "rgba(0,0,0,0.1)",
"description": "Border color"
},
"footer": {
"value": "#07A88D",
"description": "Background for footer"
}
},
"text": {
"header": {
"value": "rgba(0,0,0,0.8)",
"description": "Header text"
},
"hero": {
"value": "#FFFFFF",
"description": "Hero text"
},
"headings": {
"value": "rgba(0,0,0,0.8)",
"description": "Headings text"
},
"primary": {
"value": "rgba(0,0,0,0.8)",
"description": "Main content text"
},
"secondary": {
"value": "rgba(0,0,0,0.8)",
"description": "Supporting text"
},
"accent": {
"value": "#07A88D",
"description": "Subtle text"
},
"link": {
"value": "#07A88D",
"description": "Link text"
},
"footer": {
"value": "#FFFFFF",
"description": "Footer text"
}
},
"button": {
"primary_fill": {
"value": "#1155CB",
"description": "Background for Primary Button"
},
"primary_text": {
"value": "#FFFFFF",
"description": "Text for Primary Button"
}
}
}
},
"custom_fonts": {
"base": "Roboto",
"code": "Roboto",
"headings": "Roboto"
},
"text": {
"catalog": {
"welcome_message": "Welcome",
"primary_header": "Come one in!"
}
},
"images": {
"favicon": {
"data": "data:image/png;base64,bmljZV9sb29raW5nX3BpY3R1cmU=",
"filename": "favicon.ico"
},
"logo": {
"data": "data:image/png;base64,bmljZV9sb29raW5nX3BpY3R1cmU=",
"filename": "logo.png"
},
"catalog_cover": {
"data": "data:image/jpeg;base64,bmljZV9sb29raW5nX3BpY3R1cmU="
}
}
}Response
Details about the appearance settings being updated.
Example response
{
"theme_name": "custom",
"use_custom_fonts": true,
"custom_theme": {
"colors": {
"section": {
"header": {
"value": "#F8F8F8",
"description": "Background for header"
},
"body": {
"value": "#FFFFFF",
"description": "Background for main content"
},
"hero": {
"value": "#F8F8F8",
"description": "Background for hero section"
},
"accent": {
"value": "#F8F8F8",
"description": "Subtle background"
},
"tertiary": {
"value": "#FFFFFF",
"description": "Tertiary background"
},
"stroke": {
"value": "rgba(0,0,0,0.1)",
"description": "Border color"
},
"footer": {
"value": "#07A88D",
"description": "Background for footer"
}
},
"text": {
"header": {
"value": "rgba(0,0,0,0.8)",
"description": "Header text"
},
"hero": {
"value": "#FFFFFF",
"description": "Hero text"
},
"headings": {
"value": "rgba(0,0,0,0.8)",
"description": "Headings text"
},
"primary": {
"value": "rgba(0,0,0,0.8)",
"description": "Main content text"
},
"secondary": {
"value": "rgba(0,0,0,0.8)",
"description": "Supporting text"
},
"accent": {
"value": "#07A88D",
"description": "Subtle text"
},
"link": {
"value": "#07A88D",
"description": "Link text"
},
"footer": {
"value": "#FFFFFF",
"description": "Footer text"
}
},
"button": {
"primary_fill": {
"value": "#1155CB",
"description": "Background for Primary Button"
},
"primary_text": {
"value": "#FFFFFF",
"description": "Text for Primary Button"
}
}
}
},
"custom_fonts": {
"base": "Roboto",
"code": "Roboto",
"headings": "Roboto"
},
"text": {
"catalog": {
"welcome_message": "Welcome",
"primary_header": "Come on in!"
}
},
"images": {
"favicon": {
"data": "data:image/png;base64,bmljZV9sb29raW5nX3BpY3R1cmU=",
"filename": "favicon.ico"
},
"logo": {
"data": "data:image/png;base64,bmljZV9sb29raW5nX3BpY3R1cmU=",
"filename": "logo.png"
},
"catalog_cover": {
"data": "data:image/jpeg;base64,bmljZV9sb29raW5nX3BpY3R1cmU="
}
}
}Changes
- breaking
added to the
invalid_parameters/itemsresponse propertyoneOflist for the response status - warning
added the new
key_invalidenum value to theinvalid_parameters/items/oneOf[#/components/schemas/InvalidParameterStandard]/ruleresponse property for the response status - warning
added the new
uniqueenum value to theinvalid_parameters/items/oneOf[#/components/schemas/InvalidParameterStandard]/ruleresponse property for the response status
- breaking