# place.stream.branding.updateBlob

> Published by [did:web:longos.iameli.link](https://lexicon.garden/identity/did:web:longos.iameli.link)

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:web:longos.iameli.link/place.stream.branding.updateBlob)
- [Documentation](https://lexicon.garden/lexicon/did:web:longos.iameli.link/place.stream.branding.updateBlob/docs)
- [Examples](https://lexicon.garden/lexicon/did:web:longos.iameli.link/place.stream.branding.updateBlob/examples)

## Definitions

### `place.stream.branding.updateBlob`

**Type**: `procedure`

Update or create a branding asset blob. Requires admin authorization.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `key` | `string` | Yes | Branding asset key (mainLogo, favicon, siteTitle, etc.) |
| `data` | `string` | Yes | Base64-encoded blob data |
| `width` | `integer` | No | Image width in pixels (optional, for images only) |
| `height` | `integer` | No | Image height in pixels (optional, for images only) |
| `mimeType` | `string` | Yes | MIME type of the blob (e.g., image/png, text/plain) |
| `broadcaster` | `string` (did) | No | DID of the broadcaster. If not provided, uses the server's default broadcaster. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `success` | `boolean` | Yes |  |

#### Errors

- **Unauthorized**: The authenticated DID is not authorized to modify branding
- **BlobTooLarge**: The blob exceeds the maximum size limit

## Raw Schema

```json
{
  "id": "place.stream.branding.updateBlob",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "required": [
            "key",
            "data",
            "mimeType"
          ],
          "properties": {
            "key": {
              "type": "string",
              "description": "Branding asset key (mainLogo, favicon, siteTitle, etc.)"
            },
            "data": {
              "type": "string",
              "description": "Base64-encoded blob data"
            },
            "width": {
              "type": "integer",
              "description": "Image width in pixels (optional, for images only)"
            },
            "height": {
              "type": "integer",
              "description": "Image height in pixels (optional, for images only)"
            },
            "mimeType": {
              "type": "string",
              "description": "MIME type of the blob (e.g., image/png, text/plain)"
            },
            "broadcaster": {
              "type": "string",
              "format": "did",
              "description": "DID of the broadcaster. If not provided, uses the server's default broadcaster."
            }
          }
        },
        "encoding": "application/json"
      },
      "errors": [
        {
          "name": "Unauthorized",
          "description": "The authenticated DID is not authorized to modify branding"
        },
        {
          "name": "BlobTooLarge",
          "description": "The blob exceeds the maximum size limit"
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "success"
          ],
          "properties": {
            "success": {
              "type": "boolean"
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": null,
      "description": "Update or create a branding asset blob. Requires admin authorization."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
