Bad Request
Internal Server Error
Returns True if the new Git Branch is successfully synced into Harness
curl -i -X POST \ 'https://app.harness.io/ng/api/git-sync-branch/sync?repoIdentifier=string&accountIdentifier=string&orgIdentifier=string&projectIdentifier=string&branch=string' \ -H 'x-api-key: YOUR_API_KEY_HERE'
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Bad Request
Internal Server Error
Returns a list of branches along with their status within the given scope
curl -i -X GET \ 'https://app.harness.io/ng/api/git-sync-branch/listBranchesWithStatus?yamlGitConfigIdentifier=string&accountIdentifier=string&orgIdentifier=string&projectIdentifier=string&page=0&size=100&searchTerm=&branchSyncStatus=SYNCED' \ -H 'x-api-key: YOUR_API_KEY_HERE'
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}