Skip to main content
post/v2/teamspaces/{teamspaceId}/rules
Request example
Response
post/v2/teamspaces/{teamspaceId}/rules

Authorization

Authorizationstringheaderrequired#
Get your API key at context7.com/dashboard. Treat your API key like a password and store it securely.

Path parameters

teamspaceIdstringrequired#
Teamspace id (from GET /v2/teamspaces).

Body

application/json
textstringrequired#

Length: 1–1000

libraryIdstring#
Library id starting with /. Omit or null for a rule on every library.
libraryTypeenum<string>#
Display hint for the library.
Options:repollmstxtwebsiteopenapipdfdocxfileconfluencenotion
docsUrlstring#
http(s) link shown with the library.

Responses

application/json
Rule created
successboolean#
dataobject#