---
title: Triggers
---

[Skip to content](#_top)

[API Reference](https://developers.cloudflare.com/api)

[Workers Builds](https://developers.cloudflare.com/api/resources/workers_builds)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# Triggers

##### [List triggers for a Worker](https://developers.cloudflare.com/api/resources/workers_builds/subresources/triggers/methods/list)

GET/accounts/{account\_id}/builds/workers/{external\_script\_id}/triggers

##### [Create a build trigger](https://developers.cloudflare.com/api/resources/workers_builds/subresources/triggers/methods/create)

POST/accounts/{account\_id}/builds/triggers

##### [Update a build trigger](https://developers.cloudflare.com/api/resources/workers_builds/subresources/triggers/methods/update)

PATCH/accounts/{account\_id}/builds/triggers/{trigger\_uuid}

##### [Delete a build trigger](https://developers.cloudflare.com/api/resources/workers_builds/subresources/triggers/methods/delete)

DELETE/accounts/{account\_id}/builds/triggers/{trigger\_uuid}

##### [Purge a trigger's build cache](https://developers.cloudflare.com/api/resources/workers_builds/subresources/triggers/methods/purge_cache)

POST/accounts/{account\_id}/builds/triggers/{trigger\_uuid}/purge\_build\_cache

##### [Start a Workers build](https://developers.cloudflare.com/api/resources/workers_builds/subresources/triggers/methods/create_build)

POST/accounts/{account\_id}/builds/triggers/{trigger\_uuid}/builds

##### ModelsExpand Collapse

<details>

<summary>

TriggerListResponse object {branch\_excludes, branch\_includes, build\_caching\_enabled, 14 more }

</summary>

branch\_excludes: optional array of string

Branch patterns that must not start builds.

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_list_response%20%3E%20(schema)%20%3E%20(property)%20branch_excludes">Link to this property</a>

branch\_includes: optional array of string

Branch patterns that can start builds.

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_list_response%20%3E%20(schema)%20%3E%20(property)%20branch_includes">Link to this property</a>

build\_caching\_enabled: optional boolean

Whether builds reuse cached dependencies and build artifacts.

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_list_response%20%3E%20(schema)%20%3E%20(property)%20build_caching_enabled">Link to this property</a>

build\_command: optional string

Command to build the Worker.

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_list_response%20%3E%20(schema)%20%3E%20(property)%20build_command">Link to this property</a>

build\_token\_name: optional string

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_list_response%20%3E%20(schema)%20%3E%20(property)%20build_token_name">Link to this property</a>

build\_token\_uuid: optional string

UUID of the build token used when deploying the Worker.

formatuuid

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_list_response%20%3E%20(schema)%20%3E%20(property)%20build_token_uuid">Link to this property</a>

created\_on: optional string

formatdate-time

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_list_response%20%3E%20(schema)%20%3E%20(property)%20created_on">Link to this property</a>

deleted\_on: optional string

formatdate-time

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_list_response%20%3E%20(schema)%20%3E%20(property)%20deleted_on">Link to this property</a>

deploy\_command: optional string

Command to deploy the Worker.

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_list_response%20%3E%20(schema)%20%3E%20(property)%20deploy_command">Link to this property</a>

external\_script\_id: optional string

System-generated tag of the Worker. This is not the Worker name.

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_list_response%20%3E%20(schema)%20%3E%20(property)%20external_script_id">Link to this property</a>

modified\_on: optional string

formatdate-time

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_list_response%20%3E%20(schema)%20%3E%20(property)%20modified_on">Link to this property</a>

path\_excludes: optional array of string

Path patterns that must not start builds.

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_list_response%20%3E%20(schema)%20%3E%20(property)%20path_excludes">Link to this property</a>

path\_includes: optional array of string

Path patterns that can start builds.

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_list_response%20%3E%20(schema)%20%3E%20(property)%20path_includes">Link to this property</a>

<details>

<summary>

repo\_connection: optional object {created\_on, deleted\_on, modified\_on, 6 more }

</summary>

created\_on: optional string

formatdate-time

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_list_response%20%3E%20(schema)%20%3E%20(property)%20repo_connection%20%3E%20(property)%20created_on">Link to this property</a>

deleted\_on: optional string

formatdate-time

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_list_response%20%3E%20(schema)%20%3E%20(property)%20repo_connection%20%3E%20(property)%20deleted_on">Link to this property</a>

modified\_on: optional string

formatdate-time

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_list_response%20%3E%20(schema)%20%3E%20(property)%20repo_connection%20%3E%20(property)%20modified_on">Link to this property</a>

provider\_account\_id: optional string

Provider-specific identifier of the account or namespace that owns the repository.

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_list_response%20%3E%20(schema)%20%3E%20(property)%20repo_connection%20%3E%20(property)%20provider_account_id">Link to this property</a>

provider\_account\_name: optional string

Human-readable name of the account or namespace that owns the repository.

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_list_response%20%3E%20(schema)%20%3E%20(property)%20repo_connection%20%3E%20(property)%20provider_account_name">Link to this property</a>

<details>

<summary>

provider\_type: optional "github"or "gitlab"or "gitlab\_internal"or "origin"

Source control provider.

</summary>

One of the following:

"github"

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_list_response%20%3E%20(schema)%20%3E%20(property)%20repo_connection%20%3E%20(property)%20provider_type%20%3E%20(member)%200">Link to this property</a>

"gitlab"

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_list_response%20%3E%20(schema)%20%3E%20(property)%20repo_connection%20%3E%20(property)%20provider_type%20%3E%20(member)%201">Link to this property</a>

"gitlab\_internal"

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_list_response%20%3E%20(schema)%20%3E%20(property)%20repo_connection%20%3E%20(property)%20provider_type%20%3E%20(member)%202">Link to this property</a>

"origin"

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_list_response%20%3E%20(schema)%20%3E%20(property)%20repo_connection%20%3E%20(property)%20provider_type%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_list_response%20%3E%20(schema)%20%3E%20(property)%20repo_connection%20%3E%20(property)%20provider_type">Link to this property</a>

repo\_connection\_uuid: optional string

Repository connection UUID.

formatuuid

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_list_response%20%3E%20(schema)%20%3E%20(property)%20repo_connection%20%3E%20(property)%20repo_connection_uuid">Link to this property</a>

repo\_id: optional string

Provider-specific repository identifier.

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_list_response%20%3E%20(schema)%20%3E%20(property)%20repo_connection%20%3E%20(property)%20repo_id">Link to this property</a>

repo\_name: optional string

Human-readable repository name.

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_list_response%20%3E%20(schema)%20%3E%20(property)%20repo_connection%20%3E%20(property)%20repo_name">Link to this property</a>

</details>

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_list_response%20%3E%20(schema)%20%3E%20(property)%20repo_connection">Link to this property</a>

root\_directory: optional string

Repository directory in which build and deploy commands run.

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_list_response%20%3E%20(schema)%20%3E%20(property)%20root_directory">Link to this property</a>

trigger\_name: optional string

Human-readable name of the build trigger.

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_list_response%20%3E%20(schema)%20%3E%20(property)%20trigger_name">Link to this property</a>

trigger\_uuid: optional string

Trigger UUID.

formatuuid

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_list_response%20%3E%20(schema)%20%3E%20(property)%20trigger_uuid">Link to this property</a>

</details>

[Link to this property](<#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_list_response%20%3E%20(schema)>)

<details>

<summary>

TriggerCreateResponse object {branch\_excludes, branch\_includes, build\_caching\_enabled, 14 more }

</summary>

branch\_excludes: optional array of string

Branch patterns that must not start builds.

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_response%20%3E%20(schema)%20%3E%20(property)%20branch_excludes">Link to this property</a>

branch\_includes: optional array of string

Branch patterns that can start builds.

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_response%20%3E%20(schema)%20%3E%20(property)%20branch_includes">Link to this property</a>

build\_caching\_enabled: optional boolean

Whether builds reuse cached dependencies and build artifacts.

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_response%20%3E%20(schema)%20%3E%20(property)%20build_caching_enabled">Link to this property</a>

build\_command: optional string

Command to build the Worker.

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_response%20%3E%20(schema)%20%3E%20(property)%20build_command">Link to this property</a>

build\_token\_name: optional string

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_response%20%3E%20(schema)%20%3E%20(property)%20build_token_name">Link to this property</a>

build\_token\_uuid: optional string

UUID of the build token used when deploying the Worker.

formatuuid

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_response%20%3E%20(schema)%20%3E%20(property)%20build_token_uuid">Link to this property</a>

created\_on: optional string

formatdate-time

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_response%20%3E%20(schema)%20%3E%20(property)%20created_on">Link to this property</a>

deleted\_on: optional string

formatdate-time

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_response%20%3E%20(schema)%20%3E%20(property)%20deleted_on">Link to this property</a>

deploy\_command: optional string

Command to deploy the Worker.

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_response%20%3E%20(schema)%20%3E%20(property)%20deploy_command">Link to this property</a>

external\_script\_id: optional string

System-generated tag of the Worker. This is not the Worker name.

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_response%20%3E%20(schema)%20%3E%20(property)%20external_script_id">Link to this property</a>

modified\_on: optional string

formatdate-time

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_response%20%3E%20(schema)%20%3E%20(property)%20modified_on">Link to this property</a>

path\_excludes: optional array of string

Path patterns that must not start builds.

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_response%20%3E%20(schema)%20%3E%20(property)%20path_excludes">Link to this property</a>

path\_includes: optional array of string

Path patterns that can start builds.

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_response%20%3E%20(schema)%20%3E%20(property)%20path_includes">Link to this property</a>

<details>

<summary>

repo\_connection: optional object {created\_on, deleted\_on, modified\_on, 6 more }

</summary>

created\_on: optional string

formatdate-time

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_response%20%3E%20(schema)%20%3E%20(property)%20repo_connection%20%3E%20(property)%20created_on">Link to this property</a>

deleted\_on: optional string

formatdate-time

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_response%20%3E%20(schema)%20%3E%20(property)%20repo_connection%20%3E%20(property)%20deleted_on">Link to this property</a>

modified\_on: optional string

formatdate-time

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_response%20%3E%20(schema)%20%3E%20(property)%20repo_connection%20%3E%20(property)%20modified_on">Link to this property</a>

provider\_account\_id: optional string

Provider-specific identifier of the account or namespace that owns the repository.

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_response%20%3E%20(schema)%20%3E%20(property)%20repo_connection%20%3E%20(property)%20provider_account_id">Link to this property</a>

provider\_account\_name: optional string

Human-readable name of the account or namespace that owns the repository.

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_response%20%3E%20(schema)%20%3E%20(property)%20repo_connection%20%3E%20(property)%20provider_account_name">Link to this property</a>

<details>

<summary>

provider\_type: optional "github"or "gitlab"or "gitlab\_internal"or "origin"

Source control provider.

</summary>

One of the following:

"github"

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_response%20%3E%20(schema)%20%3E%20(property)%20repo_connection%20%3E%20(property)%20provider_type%20%3E%20(member)%200">Link to this property</a>

"gitlab"

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_response%20%3E%20(schema)%20%3E%20(property)%20repo_connection%20%3E%20(property)%20provider_type%20%3E%20(member)%201">Link to this property</a>

"gitlab\_internal"

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_response%20%3E%20(schema)%20%3E%20(property)%20repo_connection%20%3E%20(property)%20provider_type%20%3E%20(member)%202">Link to this property</a>

"origin"

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_response%20%3E%20(schema)%20%3E%20(property)%20repo_connection%20%3E%20(property)%20provider_type%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_response%20%3E%20(schema)%20%3E%20(property)%20repo_connection%20%3E%20(property)%20provider_type">Link to this property</a>

repo\_connection\_uuid: optional string

Repository connection UUID.

formatuuid

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_response%20%3E%20(schema)%20%3E%20(property)%20repo_connection%20%3E%20(property)%20repo_connection_uuid">Link to this property</a>

repo\_id: optional string

Provider-specific repository identifier.

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_response%20%3E%20(schema)%20%3E%20(property)%20repo_connection%20%3E%20(property)%20repo_id">Link to this property</a>

repo\_name: optional string

Human-readable repository name.

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_response%20%3E%20(schema)%20%3E%20(property)%20repo_connection%20%3E%20(property)%20repo_name">Link to this property</a>

</details>

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_response%20%3E%20(schema)%20%3E%20(property)%20repo_connection">Link to this property</a>

root\_directory: optional string

Repository directory in which build and deploy commands run.

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_response%20%3E%20(schema)%20%3E%20(property)%20root_directory">Link to this property</a>

trigger\_name: optional string

Human-readable name of the build trigger.

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_response%20%3E%20(schema)%20%3E%20(property)%20trigger_name">Link to this property</a>

trigger\_uuid: optional string

Trigger UUID.

formatuuid

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_response%20%3E%20(schema)%20%3E%20(property)%20trigger_uuid">Link to this property</a>

</details>

[Link to this property](<#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_response%20%3E%20(schema)>)

<details>

<summary>

TriggerUpdateResponse object {branch\_excludes, branch\_includes, build\_caching\_enabled, 14 more }

</summary>

branch\_excludes: optional array of string

Branch patterns that must not start builds.

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_update_response%20%3E%20(schema)%20%3E%20(property)%20branch_excludes">Link to this property</a>

branch\_includes: optional array of string

Branch patterns that can start builds.

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_update_response%20%3E%20(schema)%20%3E%20(property)%20branch_includes">Link to this property</a>

build\_caching\_enabled: optional boolean

Whether builds reuse cached dependencies and build artifacts.

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_update_response%20%3E%20(schema)%20%3E%20(property)%20build_caching_enabled">Link to this property</a>

build\_command: optional string

Command to build the Worker.

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_update_response%20%3E%20(schema)%20%3E%20(property)%20build_command">Link to this property</a>

build\_token\_name: optional string

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_update_response%20%3E%20(schema)%20%3E%20(property)%20build_token_name">Link to this property</a>

build\_token\_uuid: optional string

UUID of the build token used when deploying the Worker.

formatuuid

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_update_response%20%3E%20(schema)%20%3E%20(property)%20build_token_uuid">Link to this property</a>

created\_on: optional string

formatdate-time

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_update_response%20%3E%20(schema)%20%3E%20(property)%20created_on">Link to this property</a>

deleted\_on: optional string

formatdate-time

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_update_response%20%3E%20(schema)%20%3E%20(property)%20deleted_on">Link to this property</a>

deploy\_command: optional string

Command to deploy the Worker.

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_update_response%20%3E%20(schema)%20%3E%20(property)%20deploy_command">Link to this property</a>

external\_script\_id: optional string

System-generated tag of the Worker. This is not the Worker name.

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_update_response%20%3E%20(schema)%20%3E%20(property)%20external_script_id">Link to this property</a>

modified\_on: optional string

formatdate-time

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_on">Link to this property</a>

path\_excludes: optional array of string

Path patterns that must not start builds.

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_update_response%20%3E%20(schema)%20%3E%20(property)%20path_excludes">Link to this property</a>

path\_includes: optional array of string

Path patterns that can start builds.

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_update_response%20%3E%20(schema)%20%3E%20(property)%20path_includes">Link to this property</a>

<details>

<summary>

repo\_connection: optional object {created\_on, deleted\_on, modified\_on, 6 more }

</summary>

created\_on: optional string

formatdate-time

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_update_response%20%3E%20(schema)%20%3E%20(property)%20repo_connection%20%3E%20(property)%20created_on">Link to this property</a>

deleted\_on: optional string

formatdate-time

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_update_response%20%3E%20(schema)%20%3E%20(property)%20repo_connection%20%3E%20(property)%20deleted_on">Link to this property</a>

modified\_on: optional string

formatdate-time

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_update_response%20%3E%20(schema)%20%3E%20(property)%20repo_connection%20%3E%20(property)%20modified_on">Link to this property</a>

provider\_account\_id: optional string

Provider-specific identifier of the account or namespace that owns the repository.

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_update_response%20%3E%20(schema)%20%3E%20(property)%20repo_connection%20%3E%20(property)%20provider_account_id">Link to this property</a>

provider\_account\_name: optional string

Human-readable name of the account or namespace that owns the repository.

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_update_response%20%3E%20(schema)%20%3E%20(property)%20repo_connection%20%3E%20(property)%20provider_account_name">Link to this property</a>

<details>

<summary>

provider\_type: optional "github"or "gitlab"or "gitlab\_internal"or "origin"

Source control provider.

</summary>

One of the following:

"github"

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_update_response%20%3E%20(schema)%20%3E%20(property)%20repo_connection%20%3E%20(property)%20provider_type%20%3E%20(member)%200">Link to this property</a>

"gitlab"

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_update_response%20%3E%20(schema)%20%3E%20(property)%20repo_connection%20%3E%20(property)%20provider_type%20%3E%20(member)%201">Link to this property</a>

"gitlab\_internal"

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_update_response%20%3E%20(schema)%20%3E%20(property)%20repo_connection%20%3E%20(property)%20provider_type%20%3E%20(member)%202">Link to this property</a>

"origin"

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_update_response%20%3E%20(schema)%20%3E%20(property)%20repo_connection%20%3E%20(property)%20provider_type%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_update_response%20%3E%20(schema)%20%3E%20(property)%20repo_connection%20%3E%20(property)%20provider_type">Link to this property</a>

repo\_connection\_uuid: optional string

Repository connection UUID.

formatuuid

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_update_response%20%3E%20(schema)%20%3E%20(property)%20repo_connection%20%3E%20(property)%20repo_connection_uuid">Link to this property</a>

repo\_id: optional string

Provider-specific repository identifier.

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_update_response%20%3E%20(schema)%20%3E%20(property)%20repo_connection%20%3E%20(property)%20repo_id">Link to this property</a>

repo\_name: optional string

Human-readable repository name.

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_update_response%20%3E%20(schema)%20%3E%20(property)%20repo_connection%20%3E%20(property)%20repo_name">Link to this property</a>

</details>

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_update_response%20%3E%20(schema)%20%3E%20(property)%20repo_connection">Link to this property</a>

root\_directory: optional string

Repository directory in which build and deploy commands run.

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_update_response%20%3E%20(schema)%20%3E%20(property)%20root_directory">Link to this property</a>

trigger\_name: optional string

Human-readable name of the build trigger.

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_update_response%20%3E%20(schema)%20%3E%20(property)%20trigger_name">Link to this property</a>

trigger\_uuid: optional string

Trigger UUID.

formatuuid

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_update_response%20%3E%20(schema)%20%3E%20(property)%20trigger_uuid">Link to this property</a>

</details>

[Link to this property](<#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_update_response%20%3E%20(schema)>)

TriggerDeleteResponse = unknown

[Link to this property](<#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_delete_response%20%3E%20(schema)>)

TriggerPurgeCacheResponse = unknown

[Link to this property](<#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_purge_cache_response%20%3E%20(schema)>)

<details>

<summary>

TriggerCreateBuildResponse object {build\_outcome, build\_trigger\_metadata, build\_uuid, 10 more }

</summary>

<details>

<summary>

build\_outcome: optional "success"or "fail"or "skipped"or 2 more

</summary>

One of the following:

"success"

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20build_outcome%20%3E%20(member)%200">Link to this property</a>

"fail"

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20build_outcome%20%3E%20(member)%201">Link to this property</a>

"skipped"

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20build_outcome%20%3E%20(member)%202">Link to this property</a>

"cancelled"

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20build_outcome%20%3E%20(member)%203">Link to this property</a>

"terminated"

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20build_outcome%20%3E%20(member)%204">Link to this property</a>

</details>

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20build_outcome">Link to this property</a>

<details>

<summary>

build\_trigger\_metadata: optional object {author, branch, build\_command, 11 more }

</summary>

author: optional string

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20build_trigger_metadata%20%3E%20(property)%20author">Link to this property</a>

branch: optional string

Git branch name.

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20build_trigger_metadata%20%3E%20(property)%20branch">Link to this property</a>

build\_command: optional string

Command to build the Worker.

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20build_trigger_metadata%20%3E%20(property)%20build_command">Link to this property</a>

build\_token\_name: optional string

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20build_trigger_metadata%20%3E%20(property)%20build_token_name">Link to this property</a>

build\_token\_uuid: optional string

UUID of the build token used when deploying the Worker.

formatuuid

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20build_trigger_metadata%20%3E%20(property)%20build_token_uuid">Link to this property</a>

<details>

<summary>

build\_trigger\_source: optional "push"or "pull\_request"or "manual"or "api"

</summary>

One of the following:

"push"

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20build_trigger_metadata%20%3E%20(property)%20build_trigger_source%20%3E%20(member)%200">Link to this property</a>

"pull\_request"

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20build_trigger_metadata%20%3E%20(property)%20build_trigger_source%20%3E%20(member)%201">Link to this property</a>

"manual"

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20build_trigger_metadata%20%3E%20(property)%20build_trigger_source%20%3E%20(member)%202">Link to this property</a>

"api"

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20build_trigger_metadata%20%3E%20(property)%20build_trigger_source%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20build_trigger_metadata%20%3E%20(property)%20build_trigger_source">Link to this property</a>

commit\_hash: optional string

Git commit hash

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20build_trigger_metadata%20%3E%20(property)%20commit_hash">Link to this property</a>

commit\_message: optional string

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20build_trigger_metadata%20%3E%20(property)%20commit_message">Link to this property</a>

deploy\_command: optional string

Command to deploy the Worker.

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20build_trigger_metadata%20%3E%20(property)%20deploy_command">Link to this property</a>

environment\_variables: optional map\[string]

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20build_trigger_metadata%20%3E%20(property)%20environment_variables">Link to this property</a>

provider\_account\_name: optional string

Human-readable name of the account or namespace that owns the repository.

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20build_trigger_metadata%20%3E%20(property)%20provider_account_name">Link to this property</a>

<details>

<summary>

provider\_type: optional "github"or "gitlab"or "gitlab\_internal"or "origin"

Source control provider.

</summary>

One of the following:

"github"

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20build_trigger_metadata%20%3E%20(property)%20provider_type%20%3E%20(member)%200">Link to this property</a>

"gitlab"

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20build_trigger_metadata%20%3E%20(property)%20provider_type%20%3E%20(member)%201">Link to this property</a>

"gitlab\_internal"

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20build_trigger_metadata%20%3E%20(property)%20provider_type%20%3E%20(member)%202">Link to this property</a>

"origin"

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20build_trigger_metadata%20%3E%20(property)%20provider_type%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20build_trigger_metadata%20%3E%20(property)%20provider_type">Link to this property</a>

repo\_name: optional string

Human-readable repository name.

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20build_trigger_metadata%20%3E%20(property)%20repo_name">Link to this property</a>

root\_directory: optional string

Repository directory in which build and deploy commands run.

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20build_trigger_metadata%20%3E%20(property)%20root_directory">Link to this property</a>

</details>

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20build_trigger_metadata">Link to this property</a>

build\_uuid: optional string

Build UUID.

formatuuid

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20build_uuid">Link to this property</a>

created\_on: optional string

formatdate-time

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20created_on">Link to this property</a>

<details>

<summary>

deploy\_hook: optional object {deploy\_hook\_name }

</summary>

deploy\_hook\_name: optional string

Deploy hook name (1-58 characters).

maxLength58

minLength1

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20deploy_hook%20%3E%20(property)%20deploy_hook_name">Link to this property</a>

</details>

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20deploy_hook">Link to this property</a>

initializing\_on: optional string

formatdate-time

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20initializing_on">Link to this property</a>

modified\_on: optional string

formatdate-time

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20modified_on">Link to this property</a>

preview\_url: optional string

URL serving the Worker version this build deployed. Only returned by Get build by UUID, and only once the build has produced a preview artifact.

formaturi

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20preview_url">Link to this property</a>

<details>

<summary>

pull\_request: optional object {closed\_on, created\_on, pull\_request\_url }

</summary>

closed\_on: optional string

formatdate-time

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20pull_request%20%3E%20(property)%20closed_on">Link to this property</a>

created\_on: optional string

formatdate-time

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20pull_request%20%3E%20(property)%20created_on">Link to this property</a>

pull\_request\_url: optional string

formaturi

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20pull_request%20%3E%20(property)%20pull_request_url">Link to this property</a>

</details>

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20pull_request">Link to this property</a>

running\_on: optional string

formatdate-time

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20running_on">Link to this property</a>

<details>

<summary>

status: optional "queued"or "initializing"or "running"or "stopped"

</summary>

One of the following:

"queued"

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%200">Link to this property</a>

"initializing"

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%201">Link to this property</a>

"running"

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%202">Link to this property</a>

"stopped"

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20status">Link to this property</a>

stopped\_on: optional string

formatdate-time

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20stopped_on">Link to this property</a>

<details>

<summary>

trigger: optional object {branch\_excludes, branch\_includes, build\_caching\_enabled, 12 more }

Trigger information without build\_token\_uuid

</summary>

branch\_excludes: optional array of string

Branch patterns that must not start builds.

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20trigger%20%3E%20(property)%20branch_excludes">Link to this property</a>

branch\_includes: optional array of string

Branch patterns that can start builds.

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20trigger%20%3E%20(property)%20branch_includes">Link to this property</a>

build\_caching\_enabled: optional boolean

Whether builds reuse cached dependencies and build artifacts.

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20trigger%20%3E%20(property)%20build_caching_enabled">Link to this property</a>

build\_command: optional string

Command to build the Worker.

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20trigger%20%3E%20(property)%20build_command">Link to this property</a>

created\_on: optional string

formatdate-time

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20trigger%20%3E%20(property)%20created_on">Link to this property</a>

deleted\_on: optional string

formatdate-time

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20trigger%20%3E%20(property)%20deleted_on">Link to this property</a>

deploy\_command: optional string

Command to deploy the Worker.

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20trigger%20%3E%20(property)%20deploy_command">Link to this property</a>

external\_script\_id: optional string

System-generated tag of the Worker. This is not the Worker name.

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20trigger%20%3E%20(property)%20external_script_id">Link to this property</a>

modified\_on: optional string

formatdate-time

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20trigger%20%3E%20(property)%20modified_on">Link to this property</a>

path\_excludes: optional array of string

Path patterns that must not start builds.

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20trigger%20%3E%20(property)%20path_excludes">Link to this property</a>

path\_includes: optional array of string

Path patterns that can start builds.

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20trigger%20%3E%20(property)%20path_includes">Link to this property</a>

<details>

<summary>

repo\_connection: optional object {created\_on, deleted\_on, modified\_on, 6 more }

</summary>

created\_on: optional string

formatdate-time

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20trigger%20%3E%20(property)%20repo_connection%20%3E%20(property)%20created_on">Link to this property</a>

deleted\_on: optional string

formatdate-time

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20trigger%20%3E%20(property)%20repo_connection%20%3E%20(property)%20deleted_on">Link to this property</a>

modified\_on: optional string

formatdate-time

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20trigger%20%3E%20(property)%20repo_connection%20%3E%20(property)%20modified_on">Link to this property</a>

provider\_account\_id: optional string

Provider-specific identifier of the account or namespace that owns the repository.

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20trigger%20%3E%20(property)%20repo_connection%20%3E%20(property)%20provider_account_id">Link to this property</a>

provider\_account\_name: optional string

Human-readable name of the account or namespace that owns the repository.

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20trigger%20%3E%20(property)%20repo_connection%20%3E%20(property)%20provider_account_name">Link to this property</a>

<details>

<summary>

provider\_type: optional "github"or "gitlab"or "gitlab\_internal"or "origin"

Source control provider.

</summary>

One of the following:

"github"

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20trigger%20%3E%20(property)%20repo_connection%20%3E%20(property)%20provider_type%20%3E%20(member)%200">Link to this property</a>

"gitlab"

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20trigger%20%3E%20(property)%20repo_connection%20%3E%20(property)%20provider_type%20%3E%20(member)%201">Link to this property</a>

"gitlab\_internal"

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20trigger%20%3E%20(property)%20repo_connection%20%3E%20(property)%20provider_type%20%3E%20(member)%202">Link to this property</a>

"origin"

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20trigger%20%3E%20(property)%20repo_connection%20%3E%20(property)%20provider_type%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20trigger%20%3E%20(property)%20repo_connection%20%3E%20(property)%20provider_type">Link to this property</a>

repo\_connection\_uuid: optional string

Repository connection UUID.

formatuuid

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20trigger%20%3E%20(property)%20repo_connection%20%3E%20(property)%20repo_connection_uuid">Link to this property</a>

repo\_id: optional string

Provider-specific repository identifier.

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20trigger%20%3E%20(property)%20repo_connection%20%3E%20(property)%20repo_id">Link to this property</a>

repo\_name: optional string

Human-readable repository name.

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20trigger%20%3E%20(property)%20repo_connection%20%3E%20(property)%20repo_name">Link to this property</a>

</details>

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20trigger%20%3E%20(property)%20repo_connection">Link to this property</a>

root\_directory: optional string

Repository directory in which build and deploy commands run.

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20trigger%20%3E%20(property)%20root_directory">Link to this property</a>

trigger\_name: optional string

Human-readable name of the build trigger.

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20trigger%20%3E%20(property)%20trigger_name">Link to this property</a>

trigger\_uuid: optional string

Trigger UUID.

formatuuid

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20trigger%20%3E%20(property)%20trigger_uuid">Link to this property</a>

</details>

<a href="#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)%20%3E%20(property)%20trigger">Link to this property</a>

</details>

[Link to this property](<#(resource)%20workers_builds.triggers%20%3E%20(model)%20trigger_create_build_response%20%3E%20(schema)>)

#### TriggersEnvironment Variables

##### [List build variables](https://developers.cloudflare.com/api/resources/workers_builds/subresources/triggers/subresources/environment_variables/methods/list)

GET/accounts/{account\_id}/builds/triggers/{trigger\_uuid}/environment\_variables

##### [Set build variables](https://developers.cloudflare.com/api/resources/workers_builds/subresources/triggers/subresources/environment_variables/methods/upsert)

PATCH/accounts/{account\_id}/builds/triggers/{trigger\_uuid}/environment\_variables

##### [Delete a build variable](https://developers.cloudflare.com/api/resources/workers_builds/subresources/triggers/subresources/environment_variables/methods/delete)

DELETE/accounts/{account\_id}/builds/triggers/{trigger\_uuid}/environment\_variables/{environment\_variable\_key}

##### ModelsExpand Collapse

<details>

<summary>

EnvironmentVariableListResponse = map\[object {created\_on, is\_secret, value } ]

</summary>

created\_on: string

formatdate-time

<a href="#(resource)%20workers_builds.triggers.environment_variables%20%3E%20(model)%20environment_variable_list_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20created_on">Link to this property</a>

is\_secret: boolean

Whether to hide the value after it is saved. Secret values remain available to builds but appear as <code>null</code> when you list variables; non-secret values remain visible.

<a href="#(resource)%20workers_builds.triggers.environment_variables%20%3E%20(model)%20environment_variable_list_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20is_secret">Link to this property</a>

value: optional string

Value is null for secret environment variables

<a href="#(resource)%20workers_builds.triggers.environment_variables%20%3E%20(model)%20environment_variable_list_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20value">Link to this property</a>

</details>

[Link to this property](<#(resource)%20workers_builds.triggers.environment_variables%20%3E%20(model)%20environment_variable_list_response%20%3E%20(schema)>)

<details>

<summary>

EnvironmentVariableUpsertResponse = map\[object {created\_on, is\_secret, value } ]

</summary>

created\_on: string

formatdate-time

<a href="#(resource)%20workers_builds.triggers.environment_variables%20%3E%20(model)%20environment_variable_upsert_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20created_on">Link to this property</a>

is\_secret: boolean

Whether to hide the value after it is saved. Secret values remain available to builds but appear as <code>null</code> when you list variables; non-secret values remain visible.

<a href="#(resource)%20workers_builds.triggers.environment_variables%20%3E%20(model)%20environment_variable_upsert_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20is_secret">Link to this property</a>

value: optional string

Value is null for secret environment variables

<a href="#(resource)%20workers_builds.triggers.environment_variables%20%3E%20(model)%20environment_variable_upsert_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20value">Link to this property</a>

</details>

[Link to this property](<#(resource)%20workers_builds.triggers.environment_variables%20%3E%20(model)%20environment_variable_upsert_response%20%3E%20(schema)>)

EnvironmentVariableDeleteResponse = unknown

[Link to this property](<#(resource)%20workers_builds.triggers.environment_variables%20%3E%20(model)%20environment_variable_delete_response%20%3E%20(schema)>)