Skip to content
Start here

Custom Pages

List custom pages
client.CustomPages.List(ctx, query) (*SinglePage[CustomPageListResponse], error)
GET/{accounts_or_zones}/{account_or_zone_id}/custom_pages
Get a custom page
client.CustomPages.Get(ctx, identifier, query) (*CustomPageGetResponse, error)
GET/{accounts_or_zones}/{account_or_zone_id}/custom_pages/{identifier}
Update a custom page
client.CustomPages.Update(ctx, identifier, params) (*CustomPageUpdateResponse, error)
PUT/{accounts_or_zones}/{account_or_zone_id}/custom_pages/{identifier}

Custom PagesAssets

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}