Projects
Get projects
Get project
Create project
Update project
Delete project
Purge build cache
ModelsExpand Collapse
Deployment object { id, aliases, build_config, 14 more }
build_config: object { web_analytics_tag, web_analytics_token, build_caching, 3 more } Configs for the project build process.
Configs for the project build process.
deployment_trigger: object { metadata, type } Info about what caused the deployment.
Info about what caused the deployment.
env_vars: map[object { type, value } or object { type, value } ]Environment variables used for builds and Pages Functions.
Environment variables used for builds and Pages Functions.
source: object { config, type } Configs for the project source control.
Configs for the project source control.
config: object { 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 object { id, canonical_deployment, created_on, 13 more }
deployment_configs: object { preview, production } Configs for deployments in a project.
Configs for deployments in a project.
preview: object { 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[object { type, value } or object { 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[object { dataset } ]Analytics Engine bindings used for Pages Functions.
Analytics Engine bindings used for Pages Functions.
durable_object_namespaces: optional map[object { namespace_id } ]Durable Object namespaces used for Pages Functions.
Durable Object namespaces used for Pages Functions.
services: optional map[object { environment, service, entrypoint } ]Services used for Pages Functions.
Services used for Pages Functions.
production: object { 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[object { type, value } or object { 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[object { dataset } ]Analytics Engine bindings used for Pages Functions.
Analytics Engine bindings used for Pages Functions.
durable_object_namespaces: optional map[object { namespace_id } ]Durable Object namespaces used for Pages Functions.
Durable Object namespaces used for Pages Functions.
services: optional map[object { environment, service, entrypoint } ]Services used for Pages Functions.
Services used for Pages Functions.
build_config: optional object { web_analytics_tag, web_analytics_token, build_caching, 3 more } Configs for the project build process.
Configs for the project build process.
source: optional object { config, type } Configs for the project source control.
Configs for the project source control.
config: object { 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.