Resource information
https://api.insight.sitefinity.com/analytics/v1/contacts/delete-requests
POST
Parameters
Authorization
String
x-dataintelligence-datacenterkey
Guid
Request body
Responses
Sample request and response
The following request creates a new request for deletion of data for a contact reported to the Website data source with a tracking ID 183:
HTTP:
POST /analytics/v1/contacts/delete-requests
Headers:
Authorization: bearer token
x-dataintelligence-datacenterkey: c27aeeb7-d222-d848-d8bf-9792485dafa9
Body JSON:
GET
Integer
{ "PropertyName": "PropertyValue"
Status
CreatedOn
Boolean
count
{ "items": DeleteContactRequest[], "count": Integer }
For more information, see DeleteContactRequest API data type.
x-dataintelligence-count
true
The following request will filter only delete requests, which are with status Done.
GET https://api.insight.sitefinity.com/analytics/v1/contacts/delete-requests
x-dataintelligence-filter: {“Status”: “Done”}
Sample JSON response:
https://api.insight.sitefinity.com/analytics/v1/contacts/delete-requests/{request-id}
request-id
The following request will get the delete request with ID 83.
GET https://api.insight.sitefinity.com/analytics/v1/contacts/delete-requests/83
https://api.insight.sitefinity.com/analytics/v1/contacts/export-requests
{ "TargetSubjectsJson": SubjectId[] }
The following request creates a new export data request for a contact reported to the “Website” data source with a tracking ID “185”.
POST https://api.insight.sitefinity.com/analytics/v1/contacts/export-requests
GET /analytics/v1/contacts/export-requests
x-dataintelligence-skip
x-dataintelligence-take
x-dataintelligence-filter
{ "PropertyName": "PropertyValue" }
{ "items": ExportContactRequest[], "count": Integer }
For more information, see ExportContactRequest API data type.
sort
filter
skip
take
The following request filters only export requests, which are with status DataPrepared.
DataPrepared
GET https://api.insight.sitefinity.com/analytics/v1/contacts/export-requests
x-dataintelligence-filter: {“Status”: “DataPrepared”}
https://api.insight.sitefinity.com/analytics/v1/contacts/export-requests/{request-id}
The following request will get the export request with ID 150.
GET https://api.insight.sitefinity.com/analytics/v1/contacts/export-requests/150
https://api.insight.sitefinity.com/analytics/v1/contacts/export-requests/{request-id}/download
.ZIP
sitefinity-insight-client-data.json
DecExportedData
The following request will get the extracted data for export request with ID 150.
GET https://api.insight.sitefinity.com/analytics/v1/contacts/export-requests/150/download
Response:
The response is a data stream which you need to save as a .ZIP file. Extract the saved .ZIP file and read the content of the .json file:
json
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important