Git Sync
Store the credential for a git repository
Changed onStores the access token a git repository authenticates with, so it does not have to be written into the repository URL or a workspace variable. The token is write-only: it is served only to a git-sync job that presents its own job token, and a fork of this workspace reads this copy instead of holding one of its own. Requires workspace admin.
post/w/{workspace}/git_sync/credential
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/credential
- Auth
- HTTP bearer
- or API key in cookie token
Path parameters
workspacestring required
Request body
Response
the credential was stored
Changes
- info
endpoint added
- info