Request Queues
Create Request
Use this API to create a new request for the specified web form.
🗒 Things to Know
- Visibility rules configured for the web form associated to the specified template will not be inherited after request creation. For more information, see Configuring Dynamic Fields with Visibility Rules.
post/api/datasubject/v2/requestqueues/{templateId}
Path parameters
templateIdstring uuid required
Every request is created against a webform template. The template ID is the GUID corresponding to a particular webform. This can be obtained from the url by navigating to the webform. e.g. in this url, 'https://trial.onetrust.com/app/#/pia/dsar/webform/manage/6519ffd5-fe6b-4804-8dfc-1c2ae2da212d', '6519ffd5-fe6b-4804-8dfc-1c2ae2da212d' is the templateId.
Request body
Example request
{
"firstName": "Test",
"lastName": "User",
"email": "testuser@onetrust.com",
"language": "en-us",
"additionalData": {
"key": "value"
},
"requestTraceId": "e2d0f59e-3df0-4b1f-965d-d57547ed44ad",
"attachments": [
{
"fileName": "sample.txt",
"fileId": "3b47744c-eebf-44bb-bf4c-680966a448dc",
"statusId": 10,
"resourcePath": "/storage/attachments/sample.txt"
}
]
}Response
Created
Example response
{
"requestQueueRefId": "SL244HWD6D",
"requestQueueId": "e2d0f59e-3df0-4b1f-965d-d57547ed44ad",
"firstName": "Jonny",
"lastName": "Sardar",
"organization": "my own org",
"status": "NEW",
"requestTypes": [
"Data Portability, Update Data"
],
"deadline": "2019-09-08T12:49:47.920Z",
"dateCreated": "2019-08-09T12:49:47.983Z",
"dateUpdated": "2019-09-25T06:50:15.470Z",
"subjectTypes": [
"Student"
],
"approver": "Jonny Sardar Sadmin",
"language": "en-us",
"countryCode": "DZ",
"countryName": "Algeria",
"email": "abcd@gmail.com",
"workflow": "Default Workflow",
"webform": "!! Nikki",
"dateCompleted": "2019-05-31T12:43:24.173Z",
"resolution": "Not a privacy-related request",
"remainingDaysForMaxDeadline": 30,
"maxDeadlineExtensionDate": "2023-09-08T12:49:47.920Z",
"additionalStatuses": "PAUSED"
}