Docs7 Sites
Update a Docs7 site
Changed onChange settings of a GitHub site. Send only the fields to change. Owners and admins can send every field; a developer can only send { "hosting": "on" } to publish a site added for the agents only. A new slug or custom domain path starts a rebuild. A new Code Watch repository is checked against the caller's GitHub access. Only for GitHub sites: a CLI site (source: "local") answers 404.
patch/v2/teamspaces/{teamspaceId}/sites/{siteId}
Request
- Base URLhttps://context7.com/api
- URLhttps://context7.com/api/v2/teamspaces/{teamspaceId}/sites/{siteId}
- AuthHTTP bearer
Path parameters
teamspaceIdstring uuid required
Teamspace id.
siteIdstring uuid required
Docs7 site id.
Request body
Response
The updated site
Example response
{
"data": {
"platformHostname": "acme-docs.docs7.io",
"context7LibraryName": "/acme/docs"
}
}Changes
- info
added the new optional request property
- info
added the optional property
/to the response with the status
- info
- info
endpoint added
- info