Create CDN distribution

Authentication

AuthorizationBearer

IBEE platform API token. Production tokens start with ibee_prod_key_; development tokens start with ibee_dev_key_. Use a token only with its matching gateway environment.

Query parameters

workspace_idstringRequiredformat: "^[1-9][0-9]*$">=1 character

The positive numeric workspace ID to scope this request to. Zero, negative, and non-numeric values are rejected.

Request

This endpoint expects an object.
namestringRequired1-128 characters
origin_idstringRequired>=1 character
origin_typeenumOptionalDefaults to bucket
cache_policyenumOptionalDefaults to static-assets

Response

Distribution created successfully.
idstring
namestring
origin_typeenum
origin_idstring
cache_policystring
enabledboolean
statusenum
default_domainstring
default_urlstringformat: "uri"
custom_domainslist of strings
created_atdatetime
updated_atdatetime or nullOptional

Errors

400
Bad Request Error
401
Unauthorized Error
402
Payment Required Error
403
Forbidden Error
409
Conflict Error