# CreateAssetInput input


`CreateAssetInput` is a GraphQL input of the Chameleoon MAX API.

## Input fields

### scope

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

Whose the asset is.

### legalEntityId

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

The company's MAX id. Required for `COMPANY`, and must be absent for `TENANT`.

### code

`String!` · required

1 to 40 lower-case letters, digits and hyphens, starting with a letter.

### name

`String!` · required

The asset's display name, 1 to 120 characters.

### kind

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

What the asset is.

### fileId

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

The id of an upload you have not used yet, returned by `POST /api/v1/assets/files`. An upload
that is not used within 24 hours is deleted.

### isPublic

`Boolean` · default `false`

Whether to serve the image publicly, for e-mails. A stamp is never public.

## Used by

- [`createAsset`](/chameleoon-max/mutation/create-asset) (mutation)
