Git Repository
- POST
- /workspaces
- /:workspace
- /targets
Create a new Git Repository deployment target
Request example
curl -X POST "https://api.buddy.works/workspaces/:workspace/targets" \
-H "Authorization: Bearer <YOUR-TOKEN>" \
-H "Content-Type: application/json" \
-d '{
"type": "GIT",
"identifier": "git-repo-target",
"name": "Git Repository Target",
"repository": "https://github.com/company/project.git",
"auth": {
"method": "HTTP",
"username": "git-user",
"password": "ghp_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
},
"tags": [
"git",
"repository"
]
}'STATUS201 Created