Skip to main content
POST
/
v1
/
git-repos
cURL
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>"
}

Documentation Index

Fetch the complete documentation index at: https://www.activepieces.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

Body

application/json
projectId
string
required
Minimum string length: 1
remoteUrl
string
required
Pattern: ^git@[A-Za-z0-9.-]+:[A-Za-z0-9._/-]+(\.git)?$
branch
string
required
Pattern: ^(?!-)[A-Za-z0-9._/-]{1,255}$
branchType
enum<string>
required
Available options:
PRODUCTION,
DEVELOPMENT
sshPrivateKey
string
required
Minimum string length: 1
slug
string
required
Pattern: ^(?!\.{1,2}$)[A-Za-z0-9._-]{1,128}$

Response

201 - application/json

Default Response

id
string
required
created
string
required
updated
string
required
remoteUrl
string
required
branch
string
required
branchType
enum<string>
required
Available options:
PRODUCTION,
DEVELOPMENT
projectId
string
required
slug
string
required