Update the project's git integration

Changes the project's git integration (JSON merge-patch): connection, sync schedule, push settings or selection; send only what changes, lists are replaced as a whole. All changes apply together or not at all. Selection changes have side effects: turning branching off deletes every branch except the default one, new branch filters add or remove tracked branches, and new path filters start an import on every branch. A new git_branch renames the default branch. Requires stack-level settings management permission.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required
^pr_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$

Public id that is created from the type prefix of the corresponding resource and its UUID. I.e : For a project, a valid value would be : pr_0197c8f2-5a6b-7cde-8f12-3456789abcde

Body Params

Request body to change a project's git integration (JSON merge-patch): send only what changes. A new connection, repository or git_branch is checked with the git host, as when connecting the project.

string
^iau_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$

A git connection from listIntegrationAuthentications.

string
length ≤ 4096

The repository's namespace, as the repository lookups name it; empty for CodeCommit.

string
length between 1 and 4096

The repository's name.

string
length between 1 and 255

The remote branch the project's default branch syncs with; the default branch is renamed after it.

sync
object

When LingoHub pulls and pushes by itself.

push
object

How LingoHub pushes.

selection
object

Which files and branches LingoHub syncs.

Headers
string

Optional precondition. Send the quoted ETag from a GET of this resource. The mutation only runs if a strong tag matches the current representation, checked under the write lock. A comma-separated list is allowed; '*' requires an existing representation. Weak tags never match. Omit this header for an unconditional write. For an action, use the ETag from GET of the target resource, without the action suffix. A stale tag returns 412; read the current state before retrying.

string
enum
Defaults to application/json

Generated from available response content types

Allowed:
string
enum
Defaults to application/json

Generated from available request content types

Allowed:
Responses

Language
Credentials
Bearer
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
application/problem+json