Update teamspace policies
Changed onIncrementally 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.
Request
- Base URLhttps://context7.com/api
- URLhttps://context7.com/api/v2/policies
- AuthHTTP bearer
Request body
Response
Updated policy configuration
Changes
- breaking
added to the response body
oneOflist for the response status - breaking
the response's body type changed from
objectto 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
- breaking