Git Sync

List the GitLab projects a token can sync

Changed on

Lists the projects the supplied GitLab token can push to, so a git repository resource can be filled in without hand-writing a project path. The token is used for this call only and is never stored. Requires workspace admin.

post/w/{workspace}/git_sync/gitlab/projects

Request

  • Base URL
    /api (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /api/w/{workspace}/git_sync/gitlab/projects
  • Auth
    • HTTP bearer
    • or API key in cookie token

Path parameters

workspacestring required

Request body

base_urlstring required

The GitLab instance, e.g. https://gitlab.com

tokenstring required

A project access token with the api scope, or a group token that reaches the project

searchstring

Narrow the list to projects matching this text

Response

the projects the token can sync

path_with_namespacestring required

nested group path plus project name, which is also GitLab's project id

http_url_to_repostring required
default_branchstring

Changes