Portal Customization

Replace Customization

Changed on

Replace the portal customization options.

put/v3/portals/{portalId}/customization

Request

  • Base URL
    https://global.api.konghq.com
  • Auth
    • HTTP bearer
    • or HTTP bearer
    • or HTTP bearer
    • or HTTP bearer

Path parameters

portalId, string uuid required
Example:f32d905a-ed33-46a3-a093-d8f536af9a8a

The Portal identifier

Request body

PortalCustomizationV3 required

The custom settings of this portal

theme, object

The theme settings for this portal.

layout, string

This property is deprecated and is not used by the portal.

css, string nullable
menu, object
spec_renderer, object

The spec renderer settings of this portal

robots, string nullable

Example request

{
  "theme": {
    "colors": {
      "primary": "#000000"
    }
  },
  "menu": {
    "main": [
      {
        "path": "/about/company",
        "title": "My Page",
        "visibility": "public"
      }
    ],
    "footer_sections": [
      {
        "items": [
          {
            "path": "/about/company",
            "title": "My Page",
            "visibility": "public"
          }
        ]
      }
    ],
    "footer_bottom": [
      {
        "path": "/about/company",
        "title": "My Page",
        "visibility": "public"
      }
    ]
  }
}

Response

The current customization options for a portal.

PortalCustomizationV3 required

The custom settings of this portal

theme, object

The theme settings for this portal.

layout, string

This property is deprecated and is not used by the portal.

css, string nullable
menu, object
spec_renderer, object

The spec renderer settings of this portal

robots, string nullable

Example response

{
  "theme": {
    "colors": {
      "primary": "#000000"
    }
  },
  "menu": {
    "main": [
      {
        "path": "/about/company",
        "title": "My Page",
        "visibility": "public"
      }
    ],
    "footer_sections": [
      {
        "items": [
          {
            "path": "/about/company",
            "title": "My Page",
            "visibility": "public"
          }
        ]
      }
    ],
    "footer_bottom": [
      {
        "path": "/about/company",
        "title": "My Page",
        "visibility": "public"
      }
    ]
  }
}

Changes

    • breaking

      request property spec_renderer/try_it_ui_audience was restricted to a list of enum values

    • breaking

      the spec_renderer/try_it_ui_audience request property type changed from no type to string

    • breaking

      the spec_renderer/try_it_ui_audience response's property type changed from no type to string for status

    12 more changes in this revision