POST
/
api
/
v1
/
repositories
/
resolve-by-url
Resolve repository by URL
curl --request POST \
  --url https://zeropath.com/api/v1/repositories/resolve-by-url \
  --header 'Content-Type: application/json' \
  --header 'X-ZeroPath-API-Token-Id: <api-key>' \
  --header 'X-ZeroPath-API-Token-Secret: <api-key>' \
  --data '{
  "organizationId": "<string>",
  "repositoryUrl": "<string>",
  "vcs": "github"
}'
{
  "repositoryId": "<string>",
  "vcsObjectId": "<string>",
  "externalId": "<string>",
  "vcs": "github",
  "repositoryUrl": "<string>"
}

Authorizations

X-ZeroPath-API-Token-Id
string
header
required
X-ZeroPath-API-Token-Secret
string
header
required

Body

application/json
repositoryUrl
string
required
vcs
enum<string>
required
Available options:
github,
gitlab,
bitbucket,
generic
organizationId
string

Response

Repository resolved

repositoryId
string
required
vcsObjectId
string
required
vcs
enum<string>
required
Available options:
github,
gitlab,
bitbucket,
generic
repositoryUrl
string
required
externalId
string