FTP Server
- POST
- /workspaces
- /:workspace
- /targets
Create a new FTP Server deployment target
Examples
Example: FTP Target
curl -X POST "https://api.buddy.works/workspaces/:workspace/targets" \
-H "Authorization: Bearer <YOUR-TOKEN>" \
-H "Content-Type: application/json" \
-d '{
"type": "FTP",
"identifier": "ftp-server",
"name": "FTP File Server",
"host": "ftp.example.com",
"port": "21",
"path": "/public_html",
"auth": {
"username": "ftpuser",
"password": "ftppass123"
},
"secure": false,
"tags": [
"ftp",
"files"
]
}'Example: FTPS Target (Secure FTP)
curl -X POST "https://api.buddy.works/workspaces/:workspace/targets" \
-H "Authorization: Bearer <YOUR-TOKEN>" \
-H "Content-Type: application/json" \
-d '{
"type": "FTP",
"identifier": "ftps-secure-server",
"name": "FTPS Secure File Server",
"host": "ftps.example.com",
"port": "21",
"path": "/var/www/secure",
"auth": {
"username": "ftpsuser",
"password": "ftpspass123"
},
"secure": true,
"tags": [
"ftps",
"secure",
"files"
]
}'STATUS201 Created