Request approvers can select a resolution that briefly describes the reason why the request was rejected. In order to edit the default resolutions or to add new ones, you will need to use the OneTrust Request Resolution endpoints available in the Developer Portal.
Note
You will need a developer tool like Postman that can execute REST APIs.
Available Resolution Options
-
Create a POST call with the createResolution
endpoint that includes your base URL.
Enable a Content-Type header with the value application/json
.
Enable an Authorization header and provide your Bearer token generated from your client credentials.
-
Ensure the Body is set as raw with the JSON type.
-
Enter the following parameters in the Body. You will need to update the titleTranslations
and descriptionTranslations
with the desired resolution.
{
"close": true,
"complete": false,
"reject": true,
"titleTranslations": {
"en-us": "new Resolution goes here"
},
"descriptionTranslations": {
"en-us": "new Resolution goes here"
}
}
-
Click the Send button. Ensure the status code is 20X
, and there is a returned ID for the newly created resolution. The resolution should now populate in OneTrust as an available selection.
-
Create a PUT call with the updateResolution
endpoint that includes your base URL.
-
Append the resolution ID to the call URL.
Enable a Content-Type header with the value application/json
.
Enable an Authorization header and provide your Bearer token generated from your client credentials.
Ensure the Body is set as raw with the JSON type.
-
Enter the following parameters in the Body. You will need to update the titleTranslations
with the desired update to resolution.
Note
You may also need to update the translations for the resolution. Edit the language parameters with the appropriate translation update.
-
Click the Send button. Ensure the status code is 20X
, and there is a returned ID for the updated resolution.
The resolution should now update the available selection in OneTrust.
-
Create a GET call with the getAllResolution
endpoint that includes your base URL.
Enable an Authorization header and provide your client credentials.
-
Click the Send button. Ensure the status code is 20X
, and there is a returned ID for each of the resolutions.
You can use these IDs to remove custom resolutions in the application with the deleteResolution
endpoint.
-
Create a DELETE call with the deleteResolution
endpoint that includes your base URL.
Enable an Authorization header and provide your Bearer token generated from your client credentials.
-
Append the resolution ID to the call URL.
Note
You will need to obtain the ID either from when the resolution was created or by using the GET all resolutions endpoint.
Ensure the status code is 20X
. The resolution should no longer populate in OneTrust as an available selection.