Run a GitOps sync
Queues a sync of the teamspace’s manifest now, for example from CI after a change to a manifest that GitHub cannot push to Context7. Answers 202; the result appears in the sync history (
GET .../gitops). Each sync starts at most the plan’s parses (Pro 5, Enterprise 20); the rest wait for the next one. The first sync and a sync that would remove libraries need the confirmation of a preview of the same manifest. Other syncs, including pushes, the daily sync and CI syncs that start parses, need none: turning GitOps on accepted them. Owners and admins of a Pro or Enterprise teamspace, with a write-access key.1 min read
post/v2/teamspaces/{teamspaceId}/gitops/sync
Request example
Response
post/v2/teamspaces/{teamspaceId}/gitops/sync
Authorization
Path parameters
Teamspace id (from
GET /v2/teamspaces).Body
application/jsonResponses
application/json
Sync queued