update Consent With Id

PUT {{baseUrl}}/api/consent/:consentId

Updates the consent with the given Id.

Request Body

{"consent"=>{"consentEmailTemplateId"=>"<uuid>", "defaultMinimumAgeForSelfConsent"=>"<integer>", "emailPlus"=>{"emailTemplateId"=>"<uuid>", "maximumTimeToSendEmailInHours"=>"<integer>", "minimumTimeToSendEmailInHours"=>"<integer>", "enabled"=>"<boolean>"}, "id"=>"<uuid>", "insertInstant"=>"<long>", "lastUpdateInstant"=>"<long>", "multipleValuesAllowed"=>"<boolean>", "name"=>"<string>", "values"=>["<string>", "<string>"]}}

HEADERS

KeyDatatypeRequiredDescription
X-FusionAuth-TenantIdstringThe unique Id of the tenant used to scope this API request. Only required when there is more than one tenant and the API key is not tenant-scoped.
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;consent&quot;:{&quot;data&quot;:{&quot;proident2&quot;:{},&quot;mollita&quot;:{}},&quot;consentEmailTemplateId&quot;:&quot;\u003cuuid\u003e&quot;,&quot;countryMinimumAgeForSelfConsent&quot;:{},&quot;defaultMinimumAgeForSelfConsent&quot;:&quot;\u003cinteger\u003e&quot;,&quot;emailPlus&quot;:{&quot;emailTemplateId&quot;:&quot;\u003cuuid\u003e&quot;,&quot;maximumTimeToSendEmailInHours&quot;:&quot;\u003cinteger\u003e&quot;,&quot;minimumTimeToSendEmailInHours&quot;:&quot;\u003cinteger\u003e&quot;,&quot;enabled&quot;:&quot;\u003cboolean\u003e&quot;},&quot;id&quot;:&quot;\u003cuuid\u003e&quot;,&quot;insertInstant&quot;:&quot;\u003clong\u003e&quot;,&quot;lastUpdateInstant&quot;:&quot;\u003clong\u003e&quot;,&quot;multipleValuesAllowed&quot;:&quot;\u003cboolean\u003e&quot;,&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;values&quot;:[&quot;\u003cstring\u003e&quot;,&quot;\u003cstring\u003e&quot;]},&quot;consents&quot;:[{&quot;data&quot;:{&quot;culpa_517&quot;:{}},&quot;consentEmailTemplateId&quot;:&quot;\u003cuuid\u003e&quot;,&quot;countryMinimumAgeForSelfConsent&quot;:{},&quot;defaultMinimumAgeForSelfConsent&quot;:&quot;\u003cinteger\u003e&quot;,&quot;emailPlus&quot;:{&quot;emailTemplateId&quot;:&quot;\u003cuuid\u003e&quot;,&quot;maximumTimeToSendEmailInHours&quot;:&quot;\u003cinteger\u003e&quot;,&quot;minimumTimeToSendEmailInHours&quot;:&quot;\u003cinteger\u003e&quot;,&quot;enabled&quot;:&quot;\u003cboolean\u003e&quot;},&quot;id&quot;:&quot;\u003cuuid\u003e&quot;,&quot;insertInstant&quot;:&quot;\u003clong\u003e&quot;,&quot;lastUpdateInstant&quot;:&quot;\u003clong\u003e&quot;,&quot;multipleValuesAllowed&quot;:&quot;\u003cboolean\u003e&quot;,&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;values&quot;:[&quot;\u003cstring\u003e&quot;,&quot;\u003cstring\u003e&quot;]},{&quot;data&quot;:{&quot;ea_1c&quot;:{},&quot;consectetur_f68&quot;:{}},&quot;consentEmailTemplateId&quot;:&quot;\u003cuuid\u003e&quot;,&quot;countryMinimumAgeForSelfConsent&quot;:{},&quot;defaultMinimumAgeForSelfConsent&quot;:&quot;\u003cinteger\u003e&quot;,&quot;emailPlus&quot;:{&quot;emailTemplateId&quot;:&quot;\u003cuuid\u003e&quot;,&quot;maximumTimeToSendEmailInHours&quot;:&quot;\u003cinteger\u003e&quot;,&quot;minimumTimeToSendEmailInHours&quot;:&quot;\u003cinteger\u003e&quot;,&quot;enabled&quot;:&quot;\u003cboolean\u003e&quot;},&quot;id&quot;:&quot;\u003cuuid\u003e&quot;,&quot;insertInstant&quot;:&quot;\u003clong\u003e&quot;,&quot;lastUpdateInstant&quot;:&quot;\u003clong\u003e&quot;,&quot;multipleValuesAllowed&quot;:&quot;\u003cboolean\u003e&quot;,&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;values&quot;:[&quot;\u003cstring\u003e&quot;,&quot;\u003cstring\u003e&quot;]}]}