Skip to main content
POST
/
repos
/
import
/
check
Check if a git repo could be imported to Diversion
curl --request POST \
  --url https://api.diversion.dev/v0/repos/import/check \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "git_url": "<string>"
}
'
{
  "status": 403,
  "detail": "User not authorized to perform the requested action on the resource",
  "title": "<string>",
  "type": "<string>"
}

Authorizations

Authorization
string
header
required

This API uses OAuth 2 with the implicit grant flow

Body

application/json

Details of a git repo to import into Diversion

git_url
string

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

Response

Git repo can be imported.