Docs7 Sites

Connect a CLI site to GitHub

Changed on

Changes a site deployed from the CLI to build from a GitHub repository, keeping its id and address. The Docs7 GitHub App must be installed on the repository.

post/v2/teamspaces/{teamspaceId}/sites/{siteId}/connect

Request

  • Base URL
    https://context7.com/api
  • URL
    https://context7.com/api/v2/teamspaces/{teamspaceId}/sites/{siteId}/connect
  • Auth
    HTTP bearer

Request body

repoUrlstring required
branchstring required
docsPathstring required

Docs folder, . for the root.

context7Indexboolean required

Also keep the docs on Context7.

Response

The connected site

dataobject

Changes