Create Purpose

Use 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 Params
boolean
Defaults to false

Specifies if the Purpose is for internal organization use

Body Params
Organizations
array of strings

A list of External Organization Ids.

Organizations
string
required

Name of the Purpose

string
required

Detailed description of the Purpose's intended use

int64
required

The lifespan of consents recorded against this purpose in seconds

string

The default language for the Purpose in BCP 47 format

string
enum

Type of the Purpose

Allowed:
uuid

Unique identifier of the parent purpose

attributeValues
object

Map of attribute values associated with the purpose

boolean

Flag to enable geolocation tracking for this purpose

CustomPreferenceIds
array of uuids

List of custom preference IDs associated with the purpose

CustomPreferenceIds
int64

Lifespan for implicit consents in seconds

string

Description shown when confirming implicit consent

string
enum

The 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.

Allowed:
PurposeCategory
object
int64

Version number of the last major update

string

Release notes for the current version

boolean

Indicates if this is a major version update

string

The message to display with the purpose when the consent status is Hard opt-out. This message only displays when hardOptOutDisplayFormat is set to LOCK.

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

401

Unauthorized

403

Forbidden

500

Internal Server Error

Language
Credentials
OAuth2
Missing 1 required scope
URL
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
*/*