latestOpenAPI 3.0.22026-08-1719091299.2 KB

c82339816c36

purposes

Patch a purpose

Partially update a purpose

patch/metadata/purposes/{id}

Path parameters

idstring required

The ID of the purpose to patch

Request body

{"stackTrail":"components:schemas:purposes-patch-input:properties:description","oasType":"schema","type":"unknown","description":"Name of the purpose"}
{"stackTrail":"components:schemas:purposes-patch-input:properties:details","oasType":"schema","type":"unknown","description":"Details of the purpose"}
{"stackTrail":"components:schemas:purposes-patch-input:properties:enabled_status_description","oasType":"schema","type":"unknown","description":"Description of the purpose when the sdk status for the user for this purpose is enabled"}
{"stackTrail":"components:schemas:purposes-patch-input:properties:disabled_status_description","oasType":"schema","type":"unknown","description":"Description of the purpose when the sdk status for the user for this purpose is disabled"}
{"stackTrail":"components:schemas:purposes-patch-input:properties:reference","oasType":"schema","type":"unknown","description":"The reference number uniquely identifies the purpose in an official classification like the one from the CNIL"}
organization_idstring

Id of organization which purpose belongs to. If id is 'null', purpose is global

metadataobject

Metadata for additional information

regulations_idstring[]

An array of regulation IDs the purpose supports

opted_out_by_gpcboolean

Whether the purpose is opted out when a Global Privacy Control (GPC) signal applies

necessary_to_generate_revenueboolean

Whether the purpose is necessary to generate revenue (Consent or Pay)

Response

The patched Purpose object

idstring required

Purpose ID

descriptionobject

Name of the purpose

detailsobject

Details of the purpose

enabled_status_descriptionobject

Description of the purpose when the sdk status for the user for this purpose is enabled

disabled_status_descriptionobject

Description of the purpose when the sdk status for the user for this purpose is disabled

referenceobject

The reference number uniquely identifies the purpose in an official classification like the one from the CNIL

organization_idstring

Id of organization which purpose belongs to. If id is null, purpose is global

created_atstring date-time

Creation date of the purpose

updated_atstring date-time

Last update date of the purpose

regulations_idstring[]

An array of regulation IDs the purpose supports

typestring

The purpose type discriminator.

metadataobject

Metadata for additional information

opted_out_by_gpcboolean

Whether the purpose is opted out when a Global Privacy Control (GPC) signal applies

necessary_to_generate_revenueboolean

Whether the purpose is necessary to generate revenue (Consent or Pay)