Edit target with YAML

  • PATCH
  • /workspaces
  • /:workspace
  • /targets
  • /:target_id
  • /yaml

Update target from YAML

Request

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

Example: "my-company"

target_idrequiredstring
Target unique identifier (hash ID)

Example: "tgt-1234567890abcdef"

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 PATCH "https://api.buddy.works/workspaces/:workspace/targets/:target_id/yaml" \ -H "Authorization: Bearer <YOUR-TOKEN>" \ -H "Content-Type: application/json" \ -d '{ "yaml": "LSB0YXJnZXQ6..." }'