Skip to content
Start here

Assets

List custom assets
client.customPages.assets.list(AssetListParams { account_id, zone_id, page, per_page } params?, RequestOptionsoptions?): V4PagePaginationArray<AssetListResponse { description, last_updated, name, 2 more } >
GET/{accounts_or_zones}/{account_or_zone_id}/custom_pages/assets
Get a custom asset
client.customPages.assets.get(stringassetName, AssetGetParams { account_id, zone_id } params?, RequestOptionsoptions?): AssetGetResponse { description, last_updated, name, 2 more }
GET/{accounts_or_zones}/{account_or_zone_id}/custom_pages/assets/{asset_name}
Create a custom asset
client.customPages.assets.create(AssetCreateParams { description, name, url, 2 more } params, RequestOptionsoptions?): AssetCreateResponse { description, last_updated, name, 2 more }
POST/{accounts_or_zones}/{account_or_zone_id}/custom_pages/assets
Update a custom asset
client.customPages.assets.update(stringassetName, AssetUpdateParams { description, url, account_id, zone_id } params, RequestOptionsoptions?): AssetUpdateResponse { description, last_updated, name, 2 more }
PUT/{accounts_or_zones}/{account_or_zone_id}/custom_pages/assets/{asset_name}
Delete a custom asset
client.customPages.assets.delete(stringassetName, AssetDeleteParams { account_id, zone_id } params?, RequestOptionsoptions?): void
DELETE/{accounts_or_zones}/{account_or_zone_id}/custom_pages/assets/{asset_name}
ModelsExpand Collapse
AssetListResponse { description, last_updated, name, 2 more }
description?: string

A short description of the custom asset.

last_updated?: string
formatdate-time
name?: string

The unique name of the custom asset. Can only contain letters (A-Z, a-z), numbers (0-9), and underscores (_).

minLength1
size_bytes?: number

The size of the asset content in bytes.

url?: string

The URL where the asset content is fetched from.

formaturi
AssetGetResponse { description, last_updated, name, 2 more }
description?: string

A short description of the custom asset.

last_updated?: string
formatdate-time
name?: string

The unique name of the custom asset. Can only contain letters (A-Z, a-z), numbers (0-9), and underscores (_).

minLength1
size_bytes?: number

The size of the asset content in bytes.

url?: string

The URL where the asset content is fetched from.

formaturi
AssetCreateResponse { description, last_updated, name, 2 more }
description?: string

A short description of the custom asset.

last_updated?: string
formatdate-time
name?: string

The unique name of the custom asset. Can only contain letters (A-Z, a-z), numbers (0-9), and underscores (_).

minLength1
size_bytes?: number

The size of the asset content in bytes.

url?: string

The URL where the asset content is fetched from.

formaturi
AssetUpdateResponse { description, last_updated, name, 2 more }
description?: string

A short description of the custom asset.

last_updated?: string
formatdate-time
name?: string

The unique name of the custom asset. Can only contain letters (A-Z, a-z), numbers (0-9), and underscores (_).

minLength1
size_bytes?: number

The size of the asset content in bytes.

url?: string

The URL where the asset content is fetched from.

formaturi