POST
/
repos
/
{repo_id}
/
import
curl --request POST \
  --url https://api.diversion.dev/v0/repos/{repo_id}/import \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "git_url": "<string>"
}'
This response has no body data.

Authorizations

Authorization
string
headerrequired

This API uses OAuth 2 with the implicit grant flow

Path Parameters

repo_id
string
required

The repo ID of the repository. Repo name can be used instead of the ID, but usage of ID for permanent linking and API requests is preferred.

Body

application/json
git_url
string

URL to the git repo. May be omitted if repo_id already has it set.