{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-cognito/json-schema/amazon-cognito-create-managed-login-branding-request-schema.json",
  "title": "CreateManagedLoginBrandingRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-cognito-managed-login-branding-api-openapi.yml#/components/schemas/CreateManagedLoginBrandingRequest",
  "type": "object",
  "properties": {
    "UserPoolId": {
      "type": "string",
      "description": "The ID of the user pool where you want to create a new branding style."
    },
    "ClientId": {
      "type": "string",
      "description": "The app client that you want to create the branding style for. Each style is linked to an app client until you delete it."
    },
    "UseCognitoProvidedValues": {
      "type": "boolean",
      "description": "When true, applies the default branding style options. These default options are managed by Amazon Cognito. You can modify them later in the branding editor. When you specify true for this option, you must also omit values for Settings and Assets in the request."
    },
    "Settings": {
      "type": "object",
      "description": "A JSON file, encoded as a Document type, with the the settings that you want to apply to your style. The following components are not currently implemented and reserved for future use: signUp instructions sessionTimerDisplay languageSelector (for localization, see Managed login localization)"
    },
    "Assets": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AssetType"
      },
      "description": "An array of image files that you want to apply to functions like backgrounds, logos, and icons. Each object must also indicate whether it is for dark mode, light mode, or browser-adaptive mode."
    }
  },
  "required": [
    "UserPoolId",
    "ClientId"
  ],
  "$defs": {
    "AssetType": {
      "type": "object",
      "properties": {
        "Category": {
          "type": "string",
          "enum": [
            "FAVICON_ICO",
            "FAVICON_SVG",
            "EMAIL_GRAPHIC",
            "SMS_GRAPHIC",
            "AUTH_APP_GRAPHIC",
            "PASSWORD_GRAPHIC",
            "PASSKEY_GRAPHIC",
            "PAGE_HEADER_LOGO",
            "PAGE_HEADER_BACKGROUND",
            "PAGE_FOOTER_LOGO",
            "PAGE_FOOTER_BACKGROUND",
            "PAGE_BACKGROUND",
            "FORM_BACKGROUND",
            "FORM_LOGO",
            "IDP_BUTTON_ICON"
          ],
          "description": "The category that the image corresponds to in your managed login configuration. Managed login has asset categories for different types of logos, backgrounds, and icons."
        },
        "ColorMode": {
          "type": "string",
          "enum": [
            "LIGHT",
            "DARK",
            "DYNAMIC"
          ],
          "description": "The display-mode target of the asset: light, dark, or browser-adaptive. For example, Amazon Cognito displays a dark-mode image only when the browser or application is in dark mode, but displays a browser-adaptive file in all contexts."
        },
        "Extension": {
          "type": "string",
          "enum": [
            "ICO",
            "JPEG",
            "PNG",
            "SVG",
            "WEBP"
          ],
          "description": "The file type of the image file."
        },
        "Bytes": {
          "type": "string",
          "format": "byte",
          "description": "The image file, in Base64-encoded binary."
        },
        "ResourceId": {
          "type": "string",
          "description": "The ID of the asset."
        }
      },
      "required": [
        "Category",
        "ColorMode",
        "Extension"
      ]
    }
  }
}