How to update your user consents
Sandbox endpoint
https://api.platform.sandbox.easytranslate.com/api/v1/user-consents
In order to update your user consents, you need to send a PUT request
In your request's header, you first need to add your access token, to do so, simply add "Authorization" as a key and "Bearer {{ACCESS_TOKEN}}" (instead of {{ACCESS_TOKEN}}, you should provide your access token), you then need to specify that json should be accepted. To do so, add "Accept" as a key and "application/json" as its value.
Finally, you need to pass the following data to your body:
{
"data": {
"type": "user-consents",
"attributes": {
"consents": {
"terms": true,
"ai": false,
"marketing": true
}
}
}
}
-
- "terms": You need to agree to the EasyTranslate terms and conditions to be able to proceed and create projects for translation. The "terms" key value should therefore always be "true".
- "ai": If you wish to take part in the EasyTranslate AI-Learning Program and benefit from smarter, faster, data-driven analyses of your work, the value of this key should be "true" instead of "false".
- "marketing": If you consent to receive marketing content via e-mails from EasyTranslate A/S regarding product categories, this value should be "true" otherwise, it should be "false".
request example
curl --location --request PUT 'https://api.platform.sandbox.easytranslate.com/api/v1/user-consents' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer ' \
--data-raw '{
"data": {
"type": "user-consents",
"attributes": {
"consents": {
"terms": true,
"ai": false,
"marketing": true
}
}
}
}'