Policies

Update teamspace policies

Changed on

Incrementally update policy configuration for the teamspace associated with the API key. Only the fields you include in the request body are modified — omitted fields remain unchanged. For source types, use enable/disable arrays (both allowed if no overlap). For library lists, use add/remove objects or clear: true to remove all. Requires owner or admin role. All field names use camelCase. With dryRun: true nothing is saved; the response shows the policies the patch would give, accessibleLibraryCount after the change, and currentAccessibleLibraryCount before it.

patch/v2/policies

Request

  • Base URL
    https://context7.com/api
  • URL
    https://context7.com/api/v2/policies
  • Auth
    HTTP bearer

Request body

dryRunboolean

Preview the change and its library count without saving.

Response

Updated policy configuration

OR

Changes

    • breaking

      added to the response body oneOf list for the response status

    • breaking

      the response's body type changed from object to no type for status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • info

      added the new optional request property