Update teamspace policies
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.1 min read
patch/v2/policies
Request example
Response
patch/v2/policies
Authorization
Body
application/jsonEnable or disable specific source types. Both can be provided in one request, but the same type cannot appear in both arrays.
Update library access filters.
Show child attributesHide child attributes
Update quality-mode settings.
Show child attributesHide child attributes
Restrict to verified libraries only
Incremental add/remove operation on a list of library identifiers or domains. Use 'clear' to remove all entries at once.
Show child attributesHide child attributes
Identifiers to add — library paths (e.g. '/org/repo', '/org') or domains (e.g. 'stripe.com')
Identifiers to remove — library paths (e.g. '/org/repo', '/org') or domains (e.g. 'stripe.com')
Set to true to remove all entries. Cannot be used together with 'add' or 'remove'.
Incremental add/remove operation on a list of library identifiers or domains. Use 'clear' to remove all entries at once.
Show child attributesHide child attributes
Identifiers to add — library paths (e.g. '/org/repo', '/org') or domains (e.g. 'stripe.com')
Identifiers to remove — library paths (e.g. '/org/repo', '/org') or domains (e.g. 'stripe.com')
Set to true to remove all entries. Cannot be used together with 'add' or 'remove'.
Update repo-specific quality filters.
Show child attributesHide child attributes
Incremental add/remove operation on a list of SPDX license identifiers. Use 'clear' to remove all entries at once.
Update website-specific quality filters.
Update select-mode settings.
Show child attributesHide child attributes
Incremental add/remove operation on a list of library identifiers or domains. Use 'clear' to remove all entries at once.
Show child attributesHide child attributes
Identifiers to add — library paths (e.g. '/org/repo', '/org') or domains (e.g. 'stripe.com')
Identifiers to remove — library paths (e.g. '/org/repo', '/org') or domains (e.g. 'stripe.com')
Set to true to remove all entries. Cannot be used together with 'add' or 'remove'.
Responses
application/json
Updated policy configuration
Access settings for each documentation source type
Show child attributesHide child attributes
Whether a source type is enabled or disabled
Show child attributesHide child attributes
Whether this source type is enabled
Whether a source type is enabled or disabled
Show child attributesHide child attributes
Whether this source type is enabled
Whether a source type is enabled or disabled
Show child attributesHide child attributes
Whether this source type is enabled
Whether a source type is enabled or disabled
Show child attributesHide child attributes
Whether this source type is enabled
Whether a source type is enabled or disabled
Show child attributesHide child attributes
Whether this source type is enabled
Library access filters. Mode determines which sub-object is active.
Show child attributesHide child attributes
Filter mode: 'quality' for threshold-based filtering, 'select' for manual library selection
Options:
qualityselectnullQuality-mode settings (active when mode is 'quality')
Show child attributesHide child attributes
Restrict to verified libraries only
Minimum trust score, 0-10
Maximum days since last update
Libraries excluded from results
Libraries that bypass all quality filters, blocked list, and source type restrictions
Repo-specific quality filters
Show child attributesHide child attributes
Website-specific quality filters
Number of public libraries currently accessible under these filters