Skip to main content
put/v2/teamspaces/{teamspaceId}/gitops
Request example
Response
put/v2/teamspaces/{teamspaceId}/gitops

Authorization

Authorizationstringheaderrequired#
Get your API key at context7.com/dashboard. Treat your API key like a password and store it securely. Every key can read the management API (/v2/teamspaces/*), except personal data: member and invitation emails, library requesters, visitor questions, Docs7 reader searches, conversations, feedback and feature requests, and the GitHub account behind a build. To read those or make changes there, the key must be created with Write access ticked; other keys get 403 write_access_required. A teamspace can limit API keys to owners and admins, or turn them off for OAuth only; a key that its teamspace's policy refuses gets 403 api_key_admins_only or api_keys_disabled.

Path parameters

teamspaceIdstringrequired#
Teamspace id (from GET /v2/teamspaces).

Body

application/json
enabledbooleanrequired#
repoUrlstringrequired#
https://github.com/owner/repo
branchstring#
Empty or absent: the default branch.

Default: ""

filePathstringrequired#

Default: "repos.yaml"

prunebooleanrequired#
confirmationstring#
The confirmation of the enable terms; needed by the save that turns GitOps on.

Length: max 64

Responses

application/json
Settings saved
configobjectrequired#