Projects
Get projects
Get project
Create project
Update project
Delete project
Purge build cache
ModelsExpand Collapse
Deployment { id, aliases, build_config, 14 more }
build_config: { web_analytics_tag, web_analytics_token, build_caching, 3 more } Configs for the project build process.
Configs for the project build process.
deployment_trigger: { metadata, type } Info about what caused the deployment.
Info about what caused the deployment.
env_vars: map[ { type, value } or { type, value } ]Environment variables used for builds and Pages Functions.
Environment variables used for builds and Pages Functions.
source: { config, type } Configs for the project source control.
Configs for the project source control.
config: { deployments_enabled, owner, owner_id, 10 more }
Whether to enable automatic deployments when pushing to the source repository. When disabled, no deployments (production or preview) will be triggered automatically.
A list of paths that should be excluded from triggering a preview deployment. Wildcard syntax (*) is supported.
A list of paths that should be watched to trigger a preview deployment. Wildcard syntax (*) is supported.
A list of branches that should not trigger a preview deployment. Wildcard syntax (*) is supported. Must be used with preview_deployment_setting set to custom.
A list of branches that should trigger a preview deployment. Wildcard syntax (*) is supported. Must be used with preview_deployment_setting set to custom.
preview_deployment_setting: "all" or "none" or "custom"Controls whether commits to preview branches trigger a preview deployment.
Controls whether commits to preview branches trigger a preview deployment.
Project { id, canonical_deployment, created_on, 13 more }
deployment_configs: { preview, production } Configs for deployments in a project.
Configs for deployments in a project.
preview: { always_use_latest_compatibility_date, build_image_major_version, compatibility_date, 19 more } Configs for preview deploys.
Configs for preview deploys.
Whether to always use the latest compatibility date for Pages Functions.
env_vars: map[ { type, value } or { type, value } ]Environment variables used for builds and Pages Functions.
Environment variables used for builds and Pages Functions.
Deprecatedusage_model: "standard" or "bundled" or "unbound"All new projects now use the Standard usage model.The usage model for Pages Functions.
The usage model for Pages Functions.
analytics_engine_datasets: optional map[ { dataset } ]Analytics Engine bindings used for Pages Functions.
Analytics Engine bindings used for Pages Functions.
durable_object_namespaces: optional map[ { namespace_id } ]Durable Object namespaces used for Pages Functions.
Durable Object namespaces used for Pages Functions.
production: { always_use_latest_compatibility_date, build_image_major_version, compatibility_date, 19 more } Configs for production deploys.
Configs for production deploys.
Whether to always use the latest compatibility date for Pages Functions.
env_vars: map[ { type, value } or { type, value } ]Environment variables used for builds and Pages Functions.
Environment variables used for builds and Pages Functions.
Deprecatedusage_model: "standard" or "bundled" or "unbound"All new projects now use the Standard usage model.The usage model for Pages Functions.
The usage model for Pages Functions.
analytics_engine_datasets: optional map[ { dataset } ]Analytics Engine bindings used for Pages Functions.
Analytics Engine bindings used for Pages Functions.
durable_object_namespaces: optional map[ { namespace_id } ]Durable Object namespaces used for Pages Functions.
Durable Object namespaces used for Pages Functions.
build_config: optional { web_analytics_tag, web_analytics_token, build_caching, 3 more } Configs for the project build process.
Configs for the project build process.
source: optional { config, type } Configs for the project source control.
Configs for the project source control.
config: { deployments_enabled, owner, owner_id, 10 more }
Whether to enable automatic deployments when pushing to the source repository. When disabled, no deployments (production or preview) will be triggered automatically.
A list of paths that should be excluded from triggering a preview deployment. Wildcard syntax (*) is supported.
A list of paths that should be watched to trigger a preview deployment. Wildcard syntax (*) is supported.
A list of branches that should not trigger a preview deployment. Wildcard syntax (*) is supported. Must be used with preview_deployment_setting set to custom.
A list of branches that should trigger a preview deployment. Wildcard syntax (*) is supported. Must be used with preview_deployment_setting set to custom.
preview_deployment_setting: "all" or "none" or "custom"Controls whether commits to preview branches trigger a preview deployment.
Controls whether commits to preview branches trigger a preview deployment.