Retrieves all collections for a given configId based on jurisdiction
Changed onUses the configId embedded in the Unified Consent API key to retrieve an aggregate of all applicable collections of privacy protocols for a given jurisdiction. The type can either be 'draft' or 'published'. If the type is not provided, the default is 'published'. If the jurisdiction is not provided, IP geolocation is used to determine the jurisdiction. The response merges the configuration's default collection, the collections of the jurisdiction's parents and the jurisdiction's own collection, so 'us-ca' also returns the 'us' protocols. When nothing matches, the response has no collection.
Request
- Base URLhttps://uc.api.osano.com
- AuthAPI key in header x-uc-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
A country code, optionally followed by more specific levels separated by '-', such as 'us', 'us-ca' or 'ca-qc'. Case-insensitive. Use a value from the jurisdictions array of the response.
Response
The collection for the jurisdiction and every jurisdiction available for the configuration
Changes
- info
added the optional property
///to the response with the status - info
added the optional property
///to the response with the status - info
added the optional property
///to the response with the status - info
added the optional property
///to the response with the status - info
added the optional property
///to the response with the status - info
added the optional property
///to the response with the status - info
added the optional property
///to the response with the status - info
added the optional property
///to the response with the status - info
added the optional property
///to the response with the status - info
added the optional property
///to the response with the status - info
added the optional property
///to the response with the status - info
added the optional property
///to the response with the status - info
added the optional property
///to the response with the status - info
added the optional property
///to the response with the status - info
added the optional property
///to the response with the status - info
added the optional property
///to the response with the status - info
added the optional property
///to the response with the status - info
added the optional property
///to the response with the status - info
added the optional property
///to the response with the status - info
added the optional property
///to the response with the status - info
added the optional property
///to the response with the status - info
added the optional property
///to the response with the status - info
added the optional property
///to the response with the status - info
added the optional property
///to the response with the status - info
added the optional property
///to the response with the status - info
added the optional property
///to the response with the status - info
added the optional property
///to the response with the status - info
added the optional property
///to the response with the status
- info
- breaking
the
queryrequest parametertypewas restricted to a list of enum values - breaking
for the
queryrequest parametertype, default valuepublishedwas added - info
added the new enum value
draftto thequeryrequest parametertype - info
added the new enum value
publishedto thequeryrequest parametertype
- breaking