# Asset type


A named image of the organisation or of one of its companies, such as a logo or a stamp. A print
template places it by its `reference`.

## Fields

### id

[`UUID!`](/chameleoon-max/type/uuid)

The asset's MAX id.

### scope

[`AssetScope!`](/chameleoon-max/type/asset-scope)

Whose the asset is.

### legalEntityId

[`UUID`](/chameleoon-max/type/uuid)

The MAX id of the company a `COMPANY` asset belongs to. Null for a `TENANT` asset.

### code

`String!`

The asset's code. With the scope, it makes the `reference`.

### reference

`String!`

The name a print template places the asset by, for example `company.logo`.

### name

`String!`

The asset's display name.

### kind

[`AssetKind!`](/chameleoon-max/type/asset-kind)

What the asset is.

### contentType

`String!`

The image's media type: `image/png` or `image/jpeg`.

### width

`Int!`

The image's width in pixels.

### height

`Int!`

The image's height in pixels.

### sizeBytes

`Int!`

The image's size in bytes.

### isPublic

`Boolean!`

Whether the image is served without authentication at `publicUrl`. A stamp is never public.

### publicUrl

`String`

The address an e-mail links a public asset by. It changes when the image changes. Null when the
asset is not public.

### createdAt

[`Time!`](/chameleoon-max/type/time)

When the asset was created.

### updatedAt

[`Time!`](/chameleoon-max/type/time)

When the asset last changed.

## Used by

- [`createAsset`](/chameleoon-max/mutation/create-asset) (mutation)
- [`replaceAssetFile`](/chameleoon-max/mutation/replace-asset-file) (mutation)
- [`updateAsset`](/chameleoon-max/mutation/update-asset) (mutation)
- [`asset`](/chameleoon-max/query/asset) (query)
- [`AssetConnection`](/chameleoon-max/type/asset-connection)
- [`AssetEdge`](/chameleoon-max/type/asset-edge)
