POST
/
v1
/
git-repos
curl --request POST \
  --url https://cloud.activepieces.com/api/v1/git-repos \
  --header 'Content-Type: application/json' \
  --data '{
  "projectId": "<string>",
  "remoteUrl": "<string>",
  "branch": "<string>",
  "branchType": "PRODUCTION",
  "sshPrivateKey": "<string>",
  "slug": "<string>"
}'
{
  "id": "<string>",
  "created": "<string>",
  "updated": "<string>",
  "remoteUrl": "<string>",
  "branch": "<string>",
  "branchType": "PRODUCTION",
  "projectId": "<string>",
  "slug": "<string>"
}

Body

application/json
projectId
string
required
Minimum length: 1
remoteUrl
string
required
branch
string
required
Minimum length: 1
branchType
required
Available options:
PRODUCTION
sshPrivateKey
string
required
Minimum length: 1
slug
string
required
Minimum length: 1

Response

201 - application/json
Default Response
id
string
required
created
string
required
updated
string
required
remoteUrl
string
required
branch
string
required
branchType
required
Available options:
PRODUCTION
projectId
string
required
slug
string
required