Create target with YAML
- POST
- /workspaces
- /:workspace
- /targets
- /yaml
Create a new target in the workspace, project, pipeline or environment scope by sending its full YAML definition in a POST request.
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..."
}'