# Import logo or favicon

`management_groups.import_brand_asset`

Import a host-provided PNG, JPEG, or WebP image, up to 10 MiB, as the Management Group logo or favicon. Read branding first. A logo generates a favicon unless one was uploaded separately. This does not apply branding to existing portals or activate domains. Read branding after success. Retry identical input with the same client_request_id; read current branding before changing upload methods. Use prepare_brand_asset_upload or the branding setup page when no supported file input is available.

[Branding guide](https://docs.levr.ai/mcp/resources/management_group_branding.md)

Availability depends on live discovery and your access to the record. Do not infer MCP calls from REST paths.

Operation: write. Required OAuth scopes: mcp.

## Provider portal input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "asset_kind": {
      "enum": [
        "logo",
        "favicon"
      ],
      "type": "string"
    },
    "client_request_id": {
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "expected_revision": {
      "description": "Copy branding.revision unchanged from management_groups.get_branding; not an integer draft revision.",
      "maxLength": 64,
      "minLength": 64,
      "type": "string"
    },
    "file": {
      "additionalProperties": false,
      "properties": {
        "download_url": {
          "description": "Temporary HTTPS file download URL supplied by the assistant host; keep it private.",
          "format": "uri",
          "maxLength": 8192,
          "minLength": 1,
          "type": "string"
        },
        "file_id": {
          "description": "Opaque file reference supplied by the host, not an application answer-file id.",
          "maxLength": 256,
          "minLength": 1,
          "type": "string"
        },
        "file_name": {
          "maxLength": 255,
          "minLength": 1,
          "type": "string"
        },
        "mime_type": {
          "maxLength": 255,
          "minLength": 1,
          "type": "string"
        }
      },
      "required": [
        "download_url",
        "file_id"
      ],
      "type": "object"
    },
    "management_group_slug": {
      "description": "Copy management_group_slug from management_groups.list. Prefix: mgmt_.",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    }
  },
  "required": [
    "management_group_slug",
    "expected_revision",
    "asset_kind",
    "file",
    "client_request_id"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "oneOf": [
    {
      "not": {
        "required": [
          "error"
        ]
      },
      "properties": {
        "ok": {
          "const": true
        }
      },
      "required": [
        "data"
      ]
    },
    {
      "not": {
        "required": [
          "data"
        ]
      },
      "properties": {
        "ok": {
          "const": false
        }
      },
      "required": [
        "error"
      ]
    }
  ],
  "properties": {
    "data": {
      "additionalProperties": false,
      "properties": {
        "branding": {
          "additionalProperties": false,
          "properties": {
            "capabilities": {
              "type": "object"
            },
            "domain_activation": {
              "additionalProperties": false,
              "properties": {
                "blockers": {
                  "items": {
                    "type": "string"
                  },
                  "maxItems": 3,
                  "type": "array"
                },
                "retry_after_seconds": {
                  "maximum": 60,
                  "minimum": 1,
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "status": {
                  "enum": [
                    "active",
                    "ready",
                    "waiting",
                    "blocked"
                  ],
                  "type": "string"
                },
                "surfaces": {
                  "additionalProperties": false,
                  "properties": {
                    "client_surface": {
                      "additionalProperties": false,
                      "properties": {
                        "blockers": {
                          "items": {
                            "type": "string"
                          },
                          "maxItems": 3,
                          "type": "array"
                        },
                        "retry_after_seconds": {
                          "maximum": 60,
                          "minimum": 1,
                          "type": [
                            "integer",
                            "null"
                          ]
                        },
                        "status": {
                          "enum": [
                            "active",
                            "ready",
                            "waiting",
                            "blocked"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "status",
                        "blockers",
                        "retry_after_seconds"
                      ],
                      "type": "object"
                    },
                    "provider_surface": {
                      "additionalProperties": false,
                      "properties": {
                        "blockers": {
                          "items": {
                            "type": "string"
                          },
                          "maxItems": 3,
                          "type": "array"
                        },
                        "retry_after_seconds": {
                          "maximum": 60,
                          "minimum": 1,
                          "type": [
                            "integer",
                            "null"
                          ]
                        },
                        "status": {
                          "enum": [
                            "active",
                            "ready",
                            "waiting",
                            "blocked"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "status",
                        "blockers",
                        "retry_after_seconds"
                      ],
                      "type": "object"
                    },
                    "referrer_surface": {
                      "additionalProperties": false,
                      "properties": {
                        "blockers": {
                          "items": {
                            "type": "string"
                          },
                          "maxItems": 3,
                          "type": "array"
                        },
                        "retry_after_seconds": {
                          "maximum": 60,
                          "minimum": 1,
                          "type": [
                            "integer",
                            "null"
                          ]
                        },
                        "status": {
                          "enum": [
                            "active",
                            "ready",
                            "waiting",
                            "blocked"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "status",
                        "blockers",
                        "retry_after_seconds"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "provider_surface",
                    "client_surface",
                    "referrer_surface"
                  ],
                  "type": "object"
                }
              },
              "required": [
                "status",
                "blockers",
                "retry_after_seconds",
                "surfaces"
              ],
              "type": "object"
            },
            "domains": {
              "items": {
                "additionalProperties": false,
                "properties": {
                  "activated_at": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "cname_target": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "dns_records": {
                    "type": [
                      "array",
                      "object",
                      "null"
                    ]
                  },
                  "host": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "last_checked_at": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "normalized_error_code": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "normalized_error_message": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "status": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "surface": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "tls_status": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "txt_record_name": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "txt_record_value": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "surface",
                  "host",
                  "status",
                  "cname_target",
                  "txt_record_name",
                  "txt_record_value",
                  "dns_records",
                  "tls_status",
                  "normalized_error_code",
                  "normalized_error_message",
                  "last_checked_at",
                  "activated_at"
                ],
                "type": "object"
              },
              "type": "array"
            },
            "email_sender": {
              "type": "object"
            },
            "frontend_links": {
              "additionalProperties": false,
              "properties": {
                "brand_assets": {
                  "format": "uri",
                  "maxLength": 4096,
                  "type": "string"
                },
                "domains": {
                  "format": "uri",
                  "maxLength": 4096,
                  "type": "string"
                },
                "legal_links": {
                  "format": "uri",
                  "maxLength": 4096,
                  "type": "string"
                },
                "open_portal": {
                  "description": "Durable, credential-free portal link. Offer unchanged after activation; the signed-in browser creates auth handoff on opening.",
                  "format": "uri",
                  "maxLength": 4096,
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "overview": {
                  "format": "uri",
                  "maxLength": 4096,
                  "type": "string"
                },
                "support_details": {
                  "format": "uri",
                  "maxLength": 4096,
                  "type": "string"
                }
              },
              "required": [
                "overview",
                "brand_assets",
                "domains",
                "support_details",
                "legal_links",
                "open_portal"
              ],
              "type": "object"
            },
            "managed_provider_count": {
              "type": "integer"
            },
            "management_group_slug": {
              "description": "Canonical mgmt_ identifier; copy the returned value unchanged.",
              "maxLength": 255,
              "minLength": 1,
              "type": "string"
            },
            "name": {
              "type": "string"
            },
            "profile": {
              "type": "object"
            },
            "public_contact_email": {
              "type": "string"
            },
            "readiness": {
              "type": "object"
            },
            "recent_activity": {
              "items": {
                "additionalProperties": false,
                "properties": {
                  "event": {
                    "type": "string"
                  },
                  "occurred_at": {
                    "type": "string"
                  }
                },
                "required": [
                  "event",
                  "occurred_at"
                ],
                "type": "object"
              },
              "type": "array"
            },
            "revision": {
              "type": "string"
            },
            "routing": {
              "additionalProperties": false,
              "properties": {
                "surfaces": {
                  "additionalProperties": false,
                  "properties": {
                    "client_surface": {
                      "additionalProperties": false,
                      "properties": {
                        "custom_host": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "default_host": {
                          "type": "string"
                        },
                        "effective_host": {
                          "type": "string"
                        },
                        "is_custom": {
                          "type": "boolean"
                        },
                        "last_checked_at": {
                          "format": "date-time",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "normalized_error_code": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "normalized_error_message": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "readiness": {
                          "enum": [
                            "active",
                            "ready",
                            "waiting",
                            "blocked"
                          ],
                          "type": "string"
                        },
                        "setup_required": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "default_host",
                        "effective_host",
                        "custom_host",
                        "is_custom",
                        "readiness",
                        "setup_required"
                      ],
                      "type": "object"
                    },
                    "provider_surface": {
                      "additionalProperties": false,
                      "properties": {
                        "custom_host": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "default_host": {
                          "type": "string"
                        },
                        "effective_host": {
                          "type": "string"
                        },
                        "is_custom": {
                          "type": "boolean"
                        },
                        "last_checked_at": {
                          "format": "date-time",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "normalized_error_code": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "normalized_error_message": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "readiness": {
                          "enum": [
                            "active",
                            "ready",
                            "waiting",
                            "blocked"
                          ],
                          "type": "string"
                        },
                        "setup_required": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "default_host",
                        "effective_host",
                        "custom_host",
                        "is_custom",
                        "readiness",
                        "setup_required"
                      ],
                      "type": "object"
                    },
                    "referrer_surface": {
                      "additionalProperties": false,
                      "properties": {
                        "custom_host": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "default_host": {
                          "type": "string"
                        },
                        "effective_host": {
                          "type": "string"
                        },
                        "is_custom": {
                          "type": "boolean"
                        },
                        "last_checked_at": {
                          "format": "date-time",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "normalized_error_code": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "normalized_error_message": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "readiness": {
                          "enum": [
                            "active",
                            "ready",
                            "waiting",
                            "blocked"
                          ],
                          "type": "string"
                        },
                        "setup_required": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "default_host",
                        "effective_host",
                        "custom_host",
                        "is_custom",
                        "readiness",
                        "setup_required"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "provider_surface",
                    "client_surface",
                    "referrer_surface"
                  ],
                  "type": "object"
                },
                "use_custom_domains": {
                  "type": "boolean"
                }
              },
              "required": [
                "use_custom_domains",
                "surfaces"
              ],
              "type": "object"
            }
          },
          "required": [
            "management_group_slug",
            "name",
            "managed_provider_count",
            "revision",
            "frontend_links",
            "profile",
            "domains",
            "public_contact_email",
            "email_sender",
            "readiness",
            "capabilities",
            "domain_activation",
            "routing"
          ],
          "type": "object"
        }
      },
      "required": [
        "branding"
      ],
      "type": "object"
    },
    "error": {
      "additionalProperties": false,
      "properties": {
        "code": {
          "type": "string"
        },
        "details": {
          "additionalProperties": true,
          "description": "Optional bounded, agent-safe correction or recovery facts.",
          "type": "object"
        },
        "message": {
          "type": "string"
        },
        "retryable": {
          "type": "boolean"
        }
      },
      "required": [
        "code",
        "message",
        "retryable"
      ],
      "type": "object"
    },
    "meta": {
      "additionalProperties": false,
      "properties": {
        "request_id": {
          "type": "string"
        }
      },
      "required": [
        "request_id"
      ],
      "type": "object"
    },
    "ok": {
      "description": "Whether the tool completed successfully.",
      "type": "boolean"
    }
  },
  "required": [
    "ok",
    "meta"
  ],
  "type": "object"
}
```

Check the result, then read the affected record to confirm your change.
