Update library settings
Change the owner settings of a library the teamspace has claimed. The next refresh uses them.
1 min read
patch/v2/teamspaces/{teamspaceId}/libraries/{owner}/{repo}
Request example
Response
patch/v2/teamspaces/{teamspaceId}/libraries/{owner}/{repo}
Authorization
Path parameters
Teamspace id (uuid).
First segment of the library id
/owner/repo (for example vercel in /vercel/next.js, websites in /websites/docs_example_com). Case-insensitive.Second segment of the library id
/owner/repo. Case-insensitive.Body
application/jsonLength: max 100
Length: max 500
Items: max 50
Items: max 100
Extra file extensions parsed as documentation (repositories), such as ".fizz". Source code extensions are ignored.
Items: max 10
Stop indexing the library.
Keep query parameters when crawling (websites).
Keep pages that look version-specific.
Generate docs from the source code on each refresh with new commits (private repositories). Each run is billed as parsing.
Let callers who can read the library use the code tools on its source (private repositories). The main version is indexed at each refresh.
Where the parser reads settings from: these settings, or the repository's
context7.json (claimed repositories).Options:
dashboardcontext7jsonResponses
application/json
The saved settings