POST /accounts/{account_id}/builds/workers

Create a new build configuration for a Worker script, linking it to a git repository with CI/CD triggers.

Servers

Path parameters

Name Type Required Description
account_id String Yes

Request headers

Name Type Required Description
Content-Type String Yes The media type of the request body.

Default value: "application/json"

Request body fields

Name Type Required Description
git_repository Yes
production_settings Object Yes

Build and deploy settings when creating a Worker build configuration

production_settings.path_excludes[] Array No
production_settings.path_includes[] Array No
production_settings.deploy_command String Yes
production_settings.build_caching_enabled Boolean No

Default value: false

production_settings.root_directory String No

Root directory path.

Default value: "/"

production_settings.build_token_uuid String Yes

Build token UUID.

production_settings.environment_variables Object No
production_settings.environment_variables.name Object No
production_settings.environment_variables.name.is_secret Boolean Yes
production_settings.environment_variables.name.value String No
production_settings.build_command String Yes
script_tag String Yes

System-generated worker script tag.

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.