Create target with YAML

  • POST
  • /workspaces
  • /:workspace
  • /targets
  • /yaml

Add target from YAML

Request

REQUIRED SCOPES
TARGET_ADD
URL PARAMETERS
workspacerequiredstring
The human-readable ID of the workspace

Example: "my-company"

GET PARAMETERS
project_namestring
Filter targets by project name

Example: "my-project"

pipeline_idinteger
Filter targets by pipeline ID

Example: 12345

environment_idstring
Filter targets by environment ID

Example: "67890"

BODY PARAMETERS
yamlstring
The Base64-encoded YAML definition of the target

Response

RESPONSE BODY
variantsvariants
Type-specific parameters based on discriminator value

Last modified on Aug 13, 2026

Request example

curl -X POST "https://api.buddy.works/workspaces/:workspace/targets/yaml" \ -H "Authorization: Bearer <YOUR-TOKEN>" \ -H "Content-Type: application/json" \ -d '{ "yaml": "LSB0YXJnZXQ6..." }'