cURL
curl --request POST \ --url https://api.example.com/api/upload \ --header 'Content-Type: multipart/form-data' \ --header 'X-API-Key: <api-key>' \ --form file='@example-file' \ --form 'repo_name=<string>' \ --form 'branch_name=<string>'
{ "detail": [ { "loc": [ "<string>" ], "msg": "<string>", "type": "<string>" } ] }
Manually upload a repository zip file.
Required Scope: write:repo Security: Organization-level access control
write:repo
Use an API key in the X-API-Key header.
Successful Response
Was this page helpful?