Teamspace Admin

Update a rule's text

Changed on

Replaces the text. Send the rule's libraryId for a library rule (the id does not move a rule between libraries). Owners and admins only, paid owner plan.

patch/v2/teamspaces/{teamspaceId}/rules/{ruleId}

Request

  • Base URL
    https://context7.com/api
  • URL
    https://context7.com/api/v2/teamspaces/{teamspaceId}/rules/{ruleId}
  • Auth
    HTTP bearer

Request body

textstring required
libraryIdstring nullable

Library id starting with /. Omit or null for a rule on every library.

Response

Rule updated

successboolean

Changes