Save GitOps settings
Sets the manifest repository (github.com, with the Context7 GitHub App installed and readable by the caller), branch, file path and prune. Owners and admins of a Pro or Enterprise teamspace; other plans get 403
plan_required. The save that turns GitOps on answers 409 confirmation_required with the terms (enable: the plan’s limits, the parse token price and typical costs) until it is sent again with their confirmation. Every sync runs as the user who saved the settings last. A new repository, branch or path makes the next sync a first sync, which needs a confirmed preview. Turning GitOps off with every other field unchanged is always allowed, on any plan and without GitHub access; a save with enabled: false that also changes other fields runs the same checks and saves every field, or is refused and saves nothing.1 min read
put/v2/teamspaces/{teamspaceId}/gitops
Request example
Response
put/v2/teamspaces/{teamspaceId}/gitops
Authorization
Path parameters
Teamspace id (from
GET /v2/teamspaces).Body
application/jsonhttps://github.com/owner/repo
Default: "repos.yaml"
The
confirmation of the enable terms; needed by the save that turns GitOps on.Length: max 64
Responses
application/json
Settings saved