Collection Points
Update Existing Collection Point
Use this API to update an existing Collection Point. Before calling this API, ensure that the Collection Point is in Draft status. If the Collection Point is in Active status, use the Create New Collection Point Version API to create a new version of the Collection Point.
🗒 Things to Know
- One of the following parameters must be included in the API request body: PurposeId, PurposeIds, or PurposeIdsWithVersion.
- The PurposeId and PurposeIds parameters can be used to link an Active version of a purpose to a Collection Point.
- The PurposeIdsWithVersion parameter can be used to link specific versions of a purpose (either in Draft or Active status) to a Collection Point.
put/api/consentmanager/v1/collectionpoints/{collectionpointId}
Path parameters
collectionpointIdstring uuid required
Example:123e4567-e89b-12d3-a456-426614174000
The unique identifier of the Collection Point to update.
Query parameters
versioninteger
Example:1
The version of the Collection Point to update. If not provided, version 1 will be used.
Request body
Example request
{
"OrganizationId": "92cf3a3a-09a9-4d04-b69d-ea5bb1db550a",
"PurposeId": "f2229953-b4b5-4042-8cb9-b78038cc4c46,a6d68a29-a185-40e8-ac4c-5656d4856b0a",
"PurposeIds": [
"f2229953-b4b5-4042-8cb9-b78038cc4c46",
"a6d68a29-a185-40e8-ac4c-5656d4856b0a"
],
"Name": "Website Consent Banner",
"Description": "This collection point is used to collect consent for marketing cookies on the main website.",
"WebFormUrl": "https://example.com/consent-form",
"PrivacyPolicyUrl": "https://example.com/privacy-policy",
"SubjectIdentifier": "Email",
"IdentifierDataElementId": "7912bfe1-37dd-4180-8b99-963e80f3e125",
"ConsentType": "EXPLICIT",
"CollectionPointType": "WEB_FORM",
"DataControllerName": "Acme Corp",
"RightToWithdraw": "You have the right to withdraw your consent at any time.",
"HowToWithdraw": "To withdraw your consent, please contact our Data Protection Officer at dpo@example.com.",
"OtherInformation": "Processing is necessary for the performance of a contract to which the data subject is party.",
"RedirectUrl": "https://example.com/thank-you",
"IABVendorId": 13,
"DataElements": [
"marketing",
"analytics",
"preferences"
],
"Language": "en-us",
"PreferenceCenterGuid": "09ccd1b9-84a0-4bcb-a167-f761391ebffa",
"ResponsibleUserId": "bc4836e2-c117-461b-a7a2-2b268c037a97",
"ResponsibleGroupId": "5466af43-ff42-4a39-8722-5a98e7981fc4",
"OverrideActivePurpose": true,
"HostedWebForm": {
"Id": "123e4567-e89b-12d3-a456-426614174000",
"Name": "Main Consent Form",
"SdkVersion": "1.0.0",
"PublishedLink": "https://example.com/consent-form/published",
"DraftLink": "https://example.com/consent-form/draft",
"VersionId": "b6e376c3-e838-439f-a01b-1af24cf9a5ac",
"DefaultLanguageTranslations": {
"en": "English",
"es": "Spanish"
},
"PortalData": {
"DefaultLanguage": "en",
"SelectedLanguage": [
"en",
"es",
"fr"
],
"CustomTranslations": {
"es": {
"welcome.message": "Bienvenido"
},
"fr": {
"welcome.message": "Bienvenue"
}
}
},
"TestScriptGuid": "65840dad-c063-48d1-82e0-b9ec79f27908",
"ProdScriptGuid": "2defe229-42b9-4a16-85be-7e9610240d31",
"previewId": "f7cd1221-04a1-4523-89bf-3430c91b5cc9",
"TestPublishVersion": "1.0.0",
"ProdPublishVersion": "1.0.1",
"supportedScriptVersion": [
"1.0.0",
"2.0.0"
],
"NewSelectedLanguages": [
"en",
"es",
"fr"
],
"IntegrationUrls": [
"https://example.com/integration1",
"https://example.com/integration2"
],
"IntegrationSettings": {
"analytics": {
"enabled": true
},
"crm": {
"enabled": false
}
},
"formTemplate": "default-template"
},
"PurposeIdsWithVersion": [
{
"id": "7912bfe1-37dd-4180-8b99-963e80f3e125",
"version": 1
}
],
"PrimaryIdentifierType": "Email",
"CookieConsentUpdate": "UPDATE_ALL",
"ParentIdentifierTypes": [
"Email",
"Mobile"
],
"DOIEmailIdentifier": "user@example.com",
"AckEmailIdentifier": "acknowledgment@example.com",
"PrefillIdentifier": "user@example.com",
"Status": "ACTIVE",
"PreferenceCenterSettings": {
"theme": {
"primaryColor": "#007bff"
},
"features": {
"saveButton": true
}
},
"PortalSettings": {
"showBanner": true,
"consentPurposes": [
"analytics",
"marketing"
]
},
"LastSdkIntegrationDate": "2023-01-15T10:30:00Z",
"Notices": [
{
"name": "Marketing Preferences Notice",
"url": "https://example.com/privacy-notice",
"privacyNoticeGuid": "123e4567-e89b-12d3-a456-426614174000",
"type": "PRIVACY_NOTICE",
"purposeId": "123e4567-e89b-12d3-a456-426614174000",
"purposeIds": [
"123e4567-e89b-12d3-a456-426614174000",
"223e4567-e89b-12d3-a456-426614174001"
],
"noticeType": "PRIVACY_NOTICE"
}
],
"HostedWebformPublish": true,
"doubleOptInExcludedPurposes": [
{
"purposeGuid": "123e4567-e89b-12d3-a456-426614174000",
"excludeFromDoubleOptIn": true
}
]
}Response
OK