Consent & Preferences - Universal Consent & Preference Management (OAS)PurposesCreate PurposeCopy Pagepost https://{hostname}/api/consentmanager/v1/purposesUse this this API to create a new Purpose. The new Purpose will be created in Draft status and version 1. 🗒Things to Know This API returns Purpose descriptions inside <p> and </p> HTML tags. These can be sanitized depending on your formatting needs. Query ParamsisInternalOrgbooleanDefaults to falseSpecifies if the Purpose is for internal organization usetruefalseBody ParamsOrganizationsarray of stringsA list of External Organization Ids.OrganizationsADD stringNamestringrequiredName of the PurposeDescriptionstringrequiredDetailed description of the Purpose's intended useConsentLifeSpanint64requiredThe lifespan of consents recorded against this purpose in secondsDefaultLanguagestringThe default language for the Purpose in BCP 47 formatTypestringenumType of the PurposeSTANDARDSTANDARDCOOKIEIABMOBILENOTIFICATION_OPT_OUTAllowed:STANDARDCOOKIEIABMOBILENOTIFICATION_OPT_OUTParentPurposeIduuidUnique identifier of the parent purposeattributeValuesobjectMap of attribute values associated with the purposeattributeValues objectEnableGeolocationbooleanFlag to enable geolocation tracking for this purposefalsetruefalseCustomPreferenceIdsarray of uuidsList of custom preference IDs associated with the purposeCustomPreferenceIdsADD uuidImplicitConsentLifeSpanint64Lifespan for implicit consents in secondsImplicitConsentConfirmDescstringDescription shown when confirming implicit consentHardOptOutDisplayFormatstringenumThe format in which the purpose displays in a Trust Center when the consent status is Hard opt-out. Hard opt-out purposes can either be displayed but locked, or hidden.HIDEHIDELOCKAllowed:HIDELOCKPurposeCategoryobjectPurposeCategory objectLastMajorVersionint64Version number of the last major updateVersionNotesstringRelease notes for the current versionIsMajorVersionbooleanIndicates if this is a major version updatefalsetruefalseHardOptOutMessagestringThe message to display with the purpose when the consent status is Hard opt-out. This message only displays when hardOptOutDisplayFormat is set to LOCK.HeadersacceptstringenumDefaults to application/jsonGenerated from available response content types*/*application/jsonAllowed:*/*application/jsonResponses 200OK - Successfully created purpose 400Bad Request 401Unauthorized 403Forbidden 404Not Found 429Too Many Requests. For more information, see API Rate Limits. 500Internal Server ErrorUpdated 2 months ago Get List of PurposesCreate New Purpose VersionDid this page help you?YesNo