Skip to content
Start here

Assets

List custom assets
client.CustomPages.Assets.List(ctx, params) (*V4PagePaginationArray[AssetListResponse], error)
GET/{accounts_or_zones}/{account_or_zone_id}/custom_pages/assets
Get a custom asset
client.CustomPages.Assets.Get(ctx, assetName, query) (*AssetGetResponse, error)
GET/{accounts_or_zones}/{account_or_zone_id}/custom_pages/assets/{asset_name}
Create a custom asset
client.CustomPages.Assets.New(ctx, params) (*AssetNewResponse, error)
POST/{accounts_or_zones}/{account_or_zone_id}/custom_pages/assets
Update a custom asset
client.CustomPages.Assets.Update(ctx, assetName, params) (*AssetUpdateResponse, error)
PUT/{accounts_or_zones}/{account_or_zone_id}/custom_pages/assets/{asset_name}
Delete a custom asset
client.CustomPages.Assets.Delete(ctx, assetName, body) error
DELETE/{accounts_or_zones}/{account_or_zone_id}/custom_pages/assets/{asset_name}