Git Providers

Start a repository sync for a connection

Changed on

Kicks off a background sync of the connection's repositories from the provider. Returns 202 Accepted immediately — the caller should poll the connection endpoint for syncing / synced_repository_count updates rather than waiting on this response. The sync is guarded by a hard deadline and always releases the syncing flag on exit, so a client that disconnects mid-sync will not leave the connection stuck.

post/git-connections/{connection_id}/sync

Request

  • Base URL
    /api (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    HTTP bearer

Path parameters

connection_idinteger required

Connection ID

Response

Repository sync started in background

connection_idinteger required
started_atstring date-time required
syncingboolean required

Changes

    • breaking

      removed the success response with the status

    • info

      added the success response with the status

    • info

      added the optional property repositories/items/preset/items/composeFiles to the response with the status