Method: organizations.sites.updateCustomcss

Updates the custom CSS for a portal.

HTTP request

PUT https://apigee.googleapis.com/v1/{parent=organizations/*/sites/*}/customcss

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. Name of the portal. Use the following structure in your request: organizations/{org}/sites/{site}

Request body

The request body contains data with the following structure:

JSON representation
{

  // Union field payload can be only one of the following:
  "cssEditorPayload": {
    object (CssEditorUpdatePayload)
  },
  "themeEditorPayload": {
    object (ThemeEditorUpdatePayload)
  }
  // End of list of possible types for union field payload.
}
Fields
Union field payload. Editor update payload that contains the update type and the relevant data. payload can be only one of the following:
cssEditorPayload

object (CssEditorUpdatePayload)

themeEditorPayload

object (ThemeEditorUpdatePayload)

Response body

If successful, the response body contains an instance of CustomCss.

Authorization Scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

CssEditorUpdatePayload

JSON representation
{
  "kind": string,
  "content": string
}
Fields
kind

string

Type of payload.

content

string

Custom editor update payload that contains the update type and the relevant data.

ThemeEditorUpdatePayload

JSON representation
{
  "kind": string,
  "variables": string,
  "overrides": string,
  "customScss": string,
  "logo": string,
  "mobileLogo": string,
  "favicon": string,
  "editorMode": enum (EditorMode)
}
Fields
kind

string

Set to "theme-editor-update".

variables

string

Basic style settings.

overrides

string

Variable overrides.

customScss

string

Custom style overrides.

favicon

string

Favicon image (base64-encoded string).

editorMode

enum (EditorMode)

Theme editor mode.