cURL
curl --request POST \ --url https://api.example.com/update \ --header 'Content-Type: application/json' \ --data ' { "repository": "<string>", "repository_owner": "<string>", "repository_name": "<string>" } '
{ "status": "<string>", "message": "<string>", "repository": "<string>", "files_analyzed": 123, "files_updated": 123, "branch": "<string>", "pull_request_url": "<string>", "is_own_repo": true, "quality_metrics": { "average_confidence_score": 123, "all_files_validated": true, "high_confidence_files": 123, "validation_results": [ {} ] }, "output": [ { "path": "<string>", "new_content": "<string>", "comments": "<string>", "confidence_score": 123, "validation": {}, "changelog": {} } ], "fork_info": { "message": "<string>", "fork_owner": "<string>", "fork_name": "<string>", "can_delete": true, "delete_note": "<string>" } }
Modernize code and create pull request
Authorization: Bearer <access_token>
https://github.com/owner/repo
https://github.com/
[email protected]:
"success"
"error"
Show quality_metrics properties
Show output item properties
Show fork_info properties
curl -X POST https://api.dependify.dev/update \ -H "Content-Type: application/json" \ -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." \ -d '{ "repository": "https://github.com/octocat/Hello-World", "repository_owner": "octocat", "repository_name": "Hello-World" }'
{ "status": "success", "message": "Repository updated and pull request created successfully", "repository": "https://github.com/octocat/Hello-World", "files_analyzed": 15, "files_updated": 8, "branch": "dependify/modernize-2026-03-03-142536", "pull_request_url": "https://github.com/octocat/Hello-World/pull/123", "is_own_repo": false, "quality_metrics": { "average_confidence_score": 87.3, "all_files_validated": true, "high_confidence_files": 7, "validation_results": [ { "file": "src/utils/helpers.js", "is_valid": true, "confidence": 92 } ] }, "output": [ { "path": "/staging/src/utils/helpers.js", "new_content": "const formatDate = (date) => {...}", "comments": "Modernized to ES6 arrow functions and const/let", "confidence_score": 92, "validation": { "is_valid": true, "language": "javascript" }, "changelog": { "lines_added": 12, "lines_removed": 15, "key_changes": ["Converted var to const/let", "Updated to arrow functions"] } } ], "fork_info": { "message": "A temporary staging fork was created to propose these changes", "fork_owner": "your-username", "fork_name": "Hello-World", "can_delete": true, "delete_note": "You can safely delete this fork after the PR is merged or closed" } }
Show 400 Bad Request - Invalid Repository URL
{ "detail": [ { "loc": ["body", "repository"], "msg": "Repository must be a valid GitHub URL", "type": "value_error" } ] }
Show 400 Bad Request - No Files Updated
{ "detail": "No valid refactored files generated. Please check repository content." }
Show 429 Too Many Requests
{ "detail": "Rate limit exceeded: 100 per 1 hour" }
Show 500 Internal Server Error - Analysis Failed
{ "detail": "Failed to analyze repository: Connection timeout" }
Show 500 Internal Server Error - Git Operation Failed
{ "detail": "Git operation failed: Permission denied" }
{ "status": "success", "message": "No outdated files found in repository", "repository": "https://github.com/octocat/Hello-World", "files_analyzed": 0, "files_updated": 0 }
/ws