POST
/
api
/
v1
/
repositories
/
add-github-pat
Link GitHub repository with Personal Access Token
curl --request POST \
  --url https://zeropath.com/api/v1/repositories/add-github-pat \
  --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>",
  "accessToken": "<string>"
}'
{
  "id": "<string>"
}

Authorizations

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

Body

application/json
repositoryUrl
string
required
accessToken
string
required
organizationId
string

Response

Successful response

id
string