Set automatic refresh
Sets the teamspace’s automatic refresh mode of one of its private libraries (Pro and Enterprise, including an active Enterprise trial; the library need not be claimed). On Pro at most 10 private libraries of a teamspace may have a mode other than
off. off is always allowed, so a teamspace that dropped to Free can still turn it off. Each automatic refresh bills its parse tokens to the teamspace at $5 per 1M tokens, and runs only when the tracked branch has new documentation changes. Saving a mode again resumes a paused library.1 min read
put/v2/teamspaces/{teamspaceId}/libraries/{owner}/{repo}/automatic-refresh
Request example
Response
put/v2/teamspaces/{teamspaceId}/libraries/{owner}/{repo}/automatic-refresh
Authorization
Path parameters
Teamspace id.
First segment of the library id
/owner/repo. Case-insensitive.Second segment of the library id
/owner/repo. Case-insensitive.Body
application/jsonOptions:
offweeklydailyhourlypushResponses
application/json
The saved mode and the run state
The teamspace's automatic refresh of one of its private libraries. Pro and Enterprise teamspaces (Enterprise: the plan or an active Enterprise trial); on Free every mode acts as
off. Private github.com repositories only. The run state is the library's, shared by every teamspace that has it; a library several teamspaces track runs under the most permissive tier among the teamspaces whose setting is on for the trigger.