Skip to main content
POST
/
api
/
upload
Upload Code Repository
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>"
    }
  ]
}

Authorizations

X-API-Key
string
header
required

Use an API key in the X-API-Key header.

Body

multipart/form-data
file
file
required
repo_name
string
required
branch_name
string
required

Response

Successful Response