Edit pipeline with YAML
- PATCH
- /workspaces
- /:workspace
- /projects
- /:project_name
- /pipelines
- /:pipeline_id
- /yaml
Update pipeline configuration using YAML definition
Request
REQUIRED SCOPES
PIPELINE_WRITE
URL PARAMETERS
workspacerequiredstring
The human-readable ID of the workspaceExample: "my-company"
project_namerequiredstring
The human-readable ID of the projectExample: "my-project"
pipeline_idrequiredinteger
The ID of the pipelineExample: 123
BODY PARAMETERS
yamlstring
Base64 encoded string containing pipelines exported to YAML formatResponse
RESPONSE BODY
urlread-onlystring
API endpoint to GET this objecthtml_urlread-onlystring
Web URL to view this object in Buddy.worksidinteger
The unique ID of the pipelineidentifierstring
A human-readable ID of pipelinenamestring
The name of the pipelinedefinition_sourcestring enum
The source of the pipeline definitionAllowed enum:
LOCAL,REMOTEgit_config_refstring enum
The git configuration reference typeAllowed enum:
NONE,DYNAMIC,FIXEDrefsstring[]
Pipeline git context refs. If unset and events is empty, the pipeline counts as codelesseventsPipelineEventView[]
The list of events that trigger the pipeline runloopstring[]
Names of the variables to loop over (REGION, not $REGION and not a value). The pipeline runs once for each item of the value, and once for each combination of items when several variables are listed. The variable value is split into items by new lines, or by commas when it has no new lines (a single-line JSON object or key=value pairs stays one item). An item that is a JSON object or key=value pairs also sets one variable per key, named <VARIABLE>_<key>; an item that starts with EXTRACT: sets them as plain <key>.Constraints: Unique items required
prioritystring enum
The priority of the pipelineAllowed enum:
LOW,NORMAL,HIGHdisabledboolean
Indicates if the pipeline is disableddisabled_reasonstring
The reason why the pipeline is disabledlast_execution_statusstring enum
The status of the last runAllowed enum:
INPROGRESS,ENQUEUED,TERMINATED,SUCCESSFUL,FAILED,INITIAL,NOT_EXECUTED,SKIPPED,TERMINATING,WAITING_FOR_APPLY,WAITING_FOR_VARIABLES,WAITING_FOR_SETTABLE_VARIABLES,WAITING_FOR_VT_SESSIONlast_execution_revisionstring
The git revision of the last runtarget_site_urlstring
The URL to the target site after deploymentexecution_message_templatestring
The template for commit status messagescreate_datestring
The creation date of the pipelinealways_from_scratchboolean
Defines whether to upload everything from scratch on every runignore_fail_on_project_statusboolean
If set to true, the status of a given pipeline will not impact the project status on the dashboardskip_queued_runsstring enum
Which queued runs to skip when a new run starts: NEVER, ALWAYS, SAME_REF, SAME_ENVIRONMENT or SAME_ARTIFACTAllowed enum:
NEVER,ALWAYS,SAME_REF,SAME_ENVIRONMENT,SAME_ARTIFACTcancel_inprogress_runsstring enum
Which in-progress runs to cancel when a new run starts: NEVER, ALWAYS, SAME_REF, SAME_ENVIRONMENT or SAME_ARTIFACTAllowed enum:
NEVER,ALWAYS,SAME_REF,SAME_ENVIRONMENT,SAME_ARTIFACTauto_clear_cacheboolean
Defines whether to automatically clear cache before running the pipelinepausedboolean
Indicates if the pipeline is pausedpause_on_repeated_failuresinteger
Defines how many repeated failures are required to pause the pipelinefetch_all_refsboolean
If set to true, all refs will be fetched from the repositoryfetch_lfsboolean
If set to true, LFS files will be fetched from the external repository during pipeline runsfail_on_prepare_env_warningboolean
If set to true, the pipeline will fail on environment preparation warningsconcurrent_pipeline_runsboolean
Defines whether the pipeline can be run concurrentlyclone_depthinteger
Defines the depth of the git clone operation for shallow clonesdo_not_create_commit_statusboolean
If set to true, commit statuses will not be created in the repositorystaleboolean
Indicates that pipeline definition was probably removed on particular Git ref and pipeline won't be run on eventswaiting_for_pushboolean
Indicates if the pipeline is waiting for the first push to the repositoryresourcesstring enum
The resource configuration for the pipeline runAllowed enum:
DEFAULT,NANO,SMALL,MEDIUM,LARGE,XLARGE,CUSTOM,X2LARGEremote_pathstring
The path to the remote pipeline definition fileremote_refstring
The ref of the remote pipeline definitionremote_project_namestring
The project name of the remote pipeline definitionremote_parametersPipelinePropertyView[]
The parameters passed to the remote pipeline definitiongit_configYamlDefinitionView
YAML pipeline definition configurationtagsstring[]
The list of tags associated with the pipeline for organizationConstraints: Unique items required
git_changeset_basestring enum
The base for git changeset calculation. Determines which changes trigger the pipelineAllowed enum:
LATEST_RUN,LATEST_RUN_MATCHING_REF,PULL_REQUESTfilesystem_changeset_basestring enum
The base for filesystem changeset calculation. Determines which file changes trigger the pipelineAllowed enum:
DATE_MODIFIED,CONTENTScpustring enum
The CPU architecture for the pipeline runAllowed enum:
X64,ARM,X86description_requiredboolean
If set to true, a description is required when executing the pipeline manuallyfolderstring
The folder name where the pipeline is organizednotestring
Note for this resourceagent_notestring
YAML note for AI agents operating on this resourceprojectShortProjectView
Short representation of a projectcreatorMemberView
User/member referencecache_scopestring enum
Defines the cache scopeAllowed enum:
PIPELINE,PROJECT,WORKSPACEtrigger_conditionsTriggerConditionView[]
The list of trigger conditions to meet so that the pipeline can be triggeredvariablesEnvironmentVariableView[]
The list of environment variables defined for the pipelineenvironmentsPipelineEnvironmentContextView[]
The list of environments attached to the pipelineartifactsPipelineArtifactContextView[]
The list of artifact contexts configured for the pipelinepermissionsPermissionsView
Access permissions configurationmanage_variables_by_yamlboolean
If set to true, variables are managed by YAML configurationmanage_permissions_by_yamlboolean
If set to true, permissions are managed by YAML configurationactionsShortActionResponse[]
The list of actions configured in the pipelineLast modified on Nov 17, 2026
Request example
curl -X PATCH "https://api.buddy.works/workspaces/:workspace/projects/:project_name/pipelines/:pipeline_id/yaml" \
-H "Authorization: Bearer <YOUR-TOKEN>" \
-H "Content-Type: application/json" \
-d '{
"yaml": "LSBwaXBlbGluZTogdmFyeQogIHJlZnM6CiAgLSByZWZzL2hlYWRzL21hc3RlcgogIGV2ZW50czoKICAtIHR5cGU6IFdFQkhPT0sKICBmYWlsX29uX3ByZXBhcmVfZW52X3dhcm5pbmc6IHRydWUKICBhY3Rpb25zOgogIC0gYWN0aW9uOiBQYXNzIGFyZ3VtZW50cwogICAgdHlwZTogV0FJVF9GT1JfVkFSSUFCTEVTCiAgICB2YXJpYWJsZXM6CiAgICAtIGtleTogYWxhCiAgICAgIGVuY3J5cHRlZDogdHJ1ZQogIC0gYWN0aW9uOiAiZWNobyBcImFsYTogJGFsYVwiIgogICAgdHlwZTogQlVJTEQKICAgIGRvY2tlcl9pbWFnZV9uYW1lOiBidWRkeS9sb2NhbHNoZWxsCiAgICBkb2NrZXJfaW1hZ2VfdGFnOiB1YnVudHVfMjQuMDQKICAgIGV4ZWN1dGVfY29tbWFuZHM6CiAgICAtICJlY2hvIFwiYWxhOiAkYWxhXCIiCiAgICBzaGVsbDogQkFTSAo="
}'