Move / Rename a file
Move a file to a different folder or rename it on the same connection.
POST Endpoint
POST https://pushftp.com/api/move/{connectionId}Requires: Authorization: Bearer pftp_your_key
Move a file to another folder
curl -X POST https://pushftp.com/api/move/YOUR_CONNECTION_ID \
-H "Authorization: Bearer pftp_your_key" \
-H "Content-Type: application/json" \
-d '{"from": "/incoming/report.csv", "to": "/processed/report.csv"}'Log in to see your connection IDs pre-filled.
fromrequiredtorequiredRename a file
Same folder, different name:
curl -X POST https://pushftp.com/api/move/YOUR_CONNECTION_ID \
-H "Authorization: Bearer pftp_your_key" \
-H "Content-Type: application/json" \
-d '{"from": "/data/report.csv", "to": "/data/report-final.csv"}'Log in to see your connection IDs pre-filled.
Response
{
"success": true,
"from": "/incoming/report.csv",
"to": "/processed/report.csv",
"durationMs": 45,
"transfer": { "id": "abc123" }
}