{"info":{"_postman_id":"be02a5ca-bd04-48e5-b8fc-dcbb744767c5","name":"GDPR Api Documentation°","description":"<html><head></head><body><h1 id=\"introduction\">Introduction</h1>\n<p>Qualifio GDPR API documentation.</p>\n<h1 id=\"authentication\">Authentication</h1>\n<p>Qualifio will provide a speciall access token per client account.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Introduction","slug":"introduction"},{"content":"Authentication","slug":"authentication"}],"owner":"3696225","collectionId":"be02a5ca-bd04-48e5-b8fc-dcbb744767c5","publishedId":"RVu4FUxF","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FAAD25"},"publishDate":"2018-05-03T14:18:31.000Z"},"item":[{"name":"GDPR Rules","item":[{"name":"Rules creation","item":[{"name":"new conf ForgottenRight Rule (explicite)","event":[{"listen":"test","script":{"id":"bf25479d-54ec-4556-9839-a6aa8add7b8b","exec":["var jsonData = JSON.parse(responseBody);","postman.setEnvironmentVariable(\"ruleId\", jsonData._id);","","pm.test(\"Rule is NEW\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.ruleStatus.status).to.eql(\"NEW\");","    pm.expect(jsonData.ruleType).to.eql(\"GDPR_ForgottenRight\");","});"],"type":"text/javascript"}}],"id":"4239c893-639d-4171-8e62-4bc4bf0af0f1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-api-token","value":"{{gdprApiToken}}"},{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"ruleType\": \"GDPR_ForgottenRight\",\n  \"clientId\": {{clientId}},\n  \"ruleTypePayload\": {\n    \"profiles\": [{{profileId}}]\n  },\n  \"justification\": \"example justification text\",\n  \"userId\": {{dpoId}}\n}"},"url":"{{gdprApi}}/v1/gdpr/rules/forgottenRight?clientId={{clientId}}&direct=true","description":"<h1 id=\"interface-payload-for-gdpr_forgottenright\">Interface Payload for GDPR_ForgottenRight</h1>\n<p>direct=true option: allow the rule to be <strong>created</strong> and <strong>executed</strong> on the fly. </p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>interface ProfilesDelete {\n  // static value\n  ruleType: 'GDPR_ForgottenRight';\n\n  clientId: number;\n\n  // ruleTypePayload contains a list of user Ids to be deleted\n  ruleTypePayload: {\n    profiles: number[];\n  };\n\n  // optional (default FALSE): boolean value to simulate a deletion. If test at true is provided, a full GDPR process will be launch but will not delete the profiles.\n  test: true;\n\n  // text is required for logging\n  justification: string;\n\n  // Qualifio' User ID of the Requester.\n  userId: number;\n}\n</code></pre>","urlObject":{"path":["v1","gdpr","rules","forgottenRight"],"host":["{{gdprApi}}"],"query":[{"key":"clientId","value":"{{clientId}}"},{"key":"direct","value":"true"}],"variable":[]}},"response":[],"_postman_id":"4239c893-639d-4171-8e62-4bc4bf0af0f1"},{"name":"new conf Data access and Portability Rule","event":[{"listen":"test","script":{"id":"bdf5e333-77b4-46bb-904d-dafd6e2cced1","exec":["var jsonData = JSON.parse(responseBody);","postman.setEnvironmentVariable(\"ruleId\", jsonData._id);"],"type":"text/javascript"}}],"id":"afdc71de-9482-4849-90dc-d28e6d4c4efa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-api-token","value":"{{gdprApiToken}}"},{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"ruleType\": \"GDPR_ExportData\",\n  \"clientId\": {{clientId}},\n  \"ruleTypePayload\": {\n    \"profiles\": [{{profileId}}]\n  },\n  \"justification\": \"example justification text\",\n  \"callBackUrl\": \"http://localhost:80/\",\n  \"userId\": {{dpoId}}\n}"},"url":"{{gdprApi}}/v1/gdpr/rules/exportData?clientId={{clientId}}&direct=false","description":"<h1 id=\"export-data-payload\">Export Data Payload</h1>\n<p>direct=true option: allow the rule to be <strong>created</strong> and <strong>executed</strong> on the fly. </p>\n<p><strong>IMPORTANT Note</strong>: The export is not directly provided, it will be queued on our service to be executed later. Once the export archive is ready to be downloaded it will be available with the route: \"Get Archive for Rule\"</p>\n<p>A callback URL property can be set to be notified when the export file is available. The callback URL should be an available URL (http method: GET). </p>\n<p>Callback URL will be reached with 2 additional query params: ruleId and archiveId</p>\n<p>Example =&gt; url provided: <a href=\"http://mycallBackUrl.com/example\">http://mycallBackUrl.com/example</a>\nurl </p>\n<p>Call from GDPR api : <a href=\"http://mycallBackUrl.com/example?ruleId=%7B%7BruleId%7D%7D&amp;archiveId=%7B%7BarchiveId%7D%7D\">http://mycallBackUrl.com/example?ruleId={{ruleId}}&amp;archiveId={{archiveId}}</a></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>interface ProfilesExport {\n  // static value\n  ruleType: 'GDPR_ExportData';\n\n  clientId: number;\n\n  // ruleTypePayload contains a list of user Ids to be exported\n  ruleTypePayload: {\n    profiles: [12979, 316034];\n  };\n\n  // text is required for logging\n  justification: string;\n  \n  // optional callBackUrl; it must be an HTTP GET\n  // The callback will be contacted once the exported archive is ready to be downloaded\n  // the archive can be retrieved with route /GET Get Archive for Rule\n  callBackUrl?: string;\n\n  // Qualifio' User ID of the Requester.\n  userId: number;\n}\n</code></pre>","urlObject":{"path":["v1","gdpr","rules","exportData"],"host":["{{gdprApi}}"],"query":[{"key":"clientId","value":"{{clientId}}"},{"key":"direct","value":"false"}],"variable":[]}},"response":[],"_postman_id":"afdc71de-9482-4849-90dc-d28e6d4c4efa"},{"name":"new conf BulkDelete Rule","event":[{"listen":"test","script":{"id":"f052f9db-b830-49b4-b5f9-828895fd2126","exec":["var jsonData = JSON.parse(responseBody);","postman.setEnvironmentVariable(\"ruleId\", jsonData._id);","","pm.test(\"Rule is NEW\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.ruleStatus.status).to.eql(\"NEW\");","    pm.expect(jsonData.ruleType).to.eql(\"GDPR_DataRetentionPolicy_BulkDelete\");","});"],"type":"text/javascript"}}],"id":"575320c8-ebe7-49c7-b840-b528f94e825a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-api-token","value":"{{gdprApiToken}}"},{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"ruleType\": \"GDPR_DataRetentionPolicy_BulkDelete\",\n  \"clientId\": {{clientId}},\n  \"ruleTypePayload\": {\n    \"startAt\": \"2017-12-01T00:00:00.0Z\",\n    \"endAt\": \"2018-01-01T00:00:00.0Z\"\n  },\n  \"test\": false,\n  \"justification\": \"justification_choice3\",\n  \"userId\": {{userId}}\n}"},"url":"{{gdprApi}}/v1/gdpr/rules/dataRetentionPolicyBulk?clientId={{clientId}}&direct=false","description":"<h1 id=\"bulk-delete-payload\">Bulk delete payload</h1>\n<p>direct=true option: allow the rule to be <strong>created</strong> and <strong>executed</strong> on the fly. </p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>interface BulkDelete {\n  // static value\n  ruleType: 'GDPR_DataRetentionPolicy_BulkDelete';\n\n  clientId: number;\n\n  // ruleTypePayload contains the range date to be deleted\n  ruleTypePayload: {\n    startAt: Date;\n    endAt: Date;\n  };\n\n    // optional (default FALSE): boolean value to simulate a deletion. If test at true is provided, a full GDPR process will be launch but will not delete the profiles.\n  test: true;\n\n  // a justification text is required for logging\n  justification: string;\n\n  // the Qualifio User ID of the Requester.\n  userId: number;\n}\n</code></pre>","urlObject":{"path":["v1","gdpr","rules","dataRetentionPolicyBulk"],"host":["{{gdprApi}}"],"query":[{"key":"clientId","value":"{{clientId}}"},{"key":"direct","value":"false"}],"variable":[]}},"response":[],"_postman_id":"575320c8-ebe7-49c7-b840-b528f94e825a"},{"name":"new conf AutomaticDataRetentionPolicy Rule","event":[{"listen":"test","script":{"id":"6fc10654-7b8f-4ffa-9a6c-632ceb578461","exec":["var jsonData = JSON.parse(responseBody);","postman.setEnvironmentVariable(\"ruleId\", jsonData._id);"],"type":"text/javascript"}}],"id":"4efd0cb3-302a-49b9-a16f-4f6c0d8f7050","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-api-token","value":"{{gdprApiToken}}"},{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"ruleType\": \"GDPR_DataRetentionPolicy_Auto\",\n  \"clientId\": {{clientId}},\n  \"ruleTypePayload\": {\n    \"intervalUnit\": \"month\",\n    \"intervalValue\": 12,\n    \"active\": true\n  },\n  \"justification\": \"example justification text\",\n  \"userId\": {{dpoId}}\n}"},"url":"{{gdprApi}}/v1/gdpr/rules/dataRetentionPolicyAuto?clientId={{clientId}}","description":"<h1 id=\"dataretention-policy-payload\">DataRetention Policy Payload</h1>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>interface DataRetentionPolicyRule {\n  ruleType: 'GDPR_DataRetentionPolicy_Auto';\n  clientId: number;\n\n  // ruleTypePayload contains the configuration ..\n  ruleTypePayload: {\n    intervalUnit: 'month' | 'week';\n    intervalValue: 12;\n    active: true\n  };\n  justification: string;\n  userId: number;\n}\n</code></pre>","urlObject":{"path":["v1","gdpr","rules","dataRetentionPolicyAuto"],"host":["{{gdprApi}}"],"query":[{"key":"clientId","value":"{{clientId}}"}],"variable":[]}},"response":[],"_postman_id":"4efd0cb3-302a-49b9-a16f-4f6c0d8f7050"}],"id":"a64c0095-686d-46a5-9f33-2791b756abca","_postman_id":"a64c0095-686d-46a5-9f33-2791b756abca","description":""},{"name":"Rules updates","item":[{"name":"DPO","item":[{"name":"Approve rule","id":"1556ce00-04c6-4da9-8d92-03021bbd8fd3","request":{"method":"PUT","header":[{"key":"x-api-token","value":"{{gdprApiToken}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"dpo\": {{dpoId}}\n}"},"url":"{{gdprApi}}/v1/gdpr/rules/{{ruleId}}/validate?clientId={{clientId}}","description":"<p>Approve a rule request by DPO</p>\n","urlObject":{"path":["v1","gdpr","rules","{{ruleId}}","validate"],"host":["{{gdprApi}}"],"query":[{"key":"clientId","value":"{{clientId}}"}],"variable":[]}},"response":[],"_postman_id":"1556ce00-04c6-4da9-8d92-03021bbd8fd3"},{"name":"Refuse rule","id":"1a7c9764-787d-4384-80fa-0b43ec2ed938","request":{"method":"PUT","header":[{"key":"x-api-token","value":"{{gdprApiToken}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"dpo\": {{dpoId}},\n  \"reason\": \"reason text\"\n}"},"url":"{{gdprApi}}/v1/gdpr/rules/{{ruleId}}/refuse?clientId={{clientId}}","description":"<p>Refuse a rule request by DPO</p>\n","urlObject":{"path":["v1","gdpr","rules","{{ruleId}}","refuse"],"host":["{{gdprApi}}"],"query":[{"key":"clientId","value":"{{clientId}}"}],"variable":[]}},"response":[],"_postman_id":"1a7c9764-787d-4384-80fa-0b43ec2ed938"}],"id":"1e878fed-7be4-46d8-84f4-70cfa7b4482f","_postman_id":"1e878fed-7be4-46d8-84f4-70cfa7b4482f","description":""},{"name":"System","item":[{"name":"Error rule","id":"74ac4262-16bd-4fe0-b4f1-896c15d1cfcb","request":{"method":"PUT","header":[{"key":"x-api-token","value":"{{gdprApiToken}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"errorMessage\": \"Test Error Message\"\n}"},"url":"{{gdprApi}}/v1/gdpr/rules/{{ruleId}}/error?clientId={{clientId}}","description":"<p>System set Error status to a Rule</p>\n","urlObject":{"path":["v1","gdpr","rules","{{ruleId}}","error"],"host":["{{gdprApi}}"],"query":[{"key":"clientId","value":"{{clientId}}"}],"variable":[]}},"response":[],"_postman_id":"74ac4262-16bd-4fe0-b4f1-896c15d1cfcb"},{"name":"Finish rule","id":"59acd1a3-ffa8-4319-8269-c9f1244116f1","request":{"method":"PUT","header":[{"key":"x-api-token","value":"{{gdprApiToken}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{}"},"url":"{{gdprApi}}/v1/gdpr/rules/{{ruleId}}/finish?clientId={{clientId}}","description":"<p>System set FINISH status to a Rule</p>\n","urlObject":{"path":["v1","gdpr","rules","{{ruleId}}","finish"],"host":["{{gdprApi}}"],"query":[{"key":"clientId","value":"{{clientId}}"}],"variable":[]}},"response":[],"_postman_id":"59acd1a3-ffa8-4319-8269-c9f1244116f1"},{"name":"Export File Ready","id":"e88efcdd-3e59-488a-ac5b-cd69cf5c71a0","request":{"method":"PUT","header":[{"key":"x-api-token","value":"{{gdprApiToken}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{ \"clientId\": {{clientId}} }"},"url":"{{gdprApi}}/v1/gdpr/rules/{{ruleId}}/exportData?clientId={{clientId}}","urlObject":{"path":["v1","gdpr","rules","{{ruleId}}","exportData"],"host":["{{gdprApi}}"],"query":[{"key":"clientId","value":"{{clientId}}"}],"variable":[]}},"response":[],"_postman_id":"e88efcdd-3e59-488a-ac5b-cd69cf5c71a0"},{"name":"Export File Downloaded","id":"a31782ba-61d7-41f9-ab99-b898c2a7b63a","request":{"method":"PUT","header":[{"key":"x-api-token","value":"{{gdprApiToken}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{ \"clientId\": {{clientId}} }"},"url":"{{gdprApi}}/v1/gdpr/rules/{{ruleId}}/exportData?clientId={{clientId}}","urlObject":{"path":["v1","gdpr","rules","{{ruleId}}","exportData"],"host":["{{gdprApi}}"],"query":[{"key":"clientId","value":"{{clientId}}"}],"variable":[]}},"response":[],"_postman_id":"a31782ba-61d7-41f9-ab99-b898c2a7b63a"}],"id":"d322e700-9398-4f2f-afa9-3feb05032dfb","_postman_id":"d322e700-9398-4f2f-afa9-3feb05032dfb","description":""}],"id":"f2794d92-bad8-4a27-a64e-eab470ff12f6","_postman_id":"f2794d92-bad8-4a27-a64e-eab470ff12f6","description":""},{"name":"Archives / Exports","item":[{"name":"Get Archive for Rule","id":"f703b8be-87d6-4e10-95a0-3c3871008495","request":{"method":"GET","header":[{"key":"x-api-token","value":"{{gdprApiToken}}"}],"body":{"mode":"formdata","formdata":[]},"url":"{{gdprApi}}/v1/gdpr/rules/{{ruleId}}/archive/{{archiveId}}?clientId={{clientId}}","urlObject":{"path":["v1","gdpr","rules","{{ruleId}}","archive","{{archiveId}}"],"host":["{{gdprApi}}"],"query":[{"key":"clientId","value":"{{clientId}}"}],"variable":[]}},"response":[],"_postman_id":"f703b8be-87d6-4e10-95a0-3c3871008495"}],"id":"5aa3fb05-ac7e-474b-b6b7-5f3b8ba063f9","_postman_id":"5aa3fb05-ac7e-474b-b6b7-5f3b8ba063f9","description":""},{"name":"get rules (all params)","event":[{"listen":"test","script":{"id":"484481bc-c0ee-4744-94ca-cbfc3f00708e","type":"text/javascript","exec":["pm.test(\"Result should be an Array of Rules\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData).to.be.an('array');","    pm.expect(jsonData.length).to.not.eql(0);","});",""]}}],"id":"bd896ff2-a3be-4b0d-b554-caef17731abb","request":{"method":"GET","header":[{"key":"x-api-token","value":"{{gdprApiToken}}"}],"body":{"mode":"formdata","formdata":[]},"url":"{{gdprApi}}/v1/gdpr/rules?clientId={{clientId}}","description":"<p>Query Params are optionnals</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>/*\nRuleType Accepted Values: \n | GDPR_ExportData\n | GDPR_DataRetentionPolicy_BulkDelete\n | GDPR_ForgottenRight\n | GDPR_ExportData\n | GDPR_DataRetentionPolicy_Auto\n*/\nruleType: string;\n\n// top/limit rules per page\ntop: number;\n\n// display unapproved rules if true\nnew: boolean;\n\n// filter by requester id\nuserId: number;\n\n</code></pre>","urlObject":{"path":["v1","gdpr","rules"],"host":["{{gdprApi}}"],"query":[{"key":"clientId","value":"{{clientId}}"},{"disabled":true,"key":"top","value":"1"},{"disabled":true,"key":"new","value":"false"},{"disabled":true,"key":"userId","value":"7866"}],"variable":[]}},"response":[],"_postman_id":"bd896ff2-a3be-4b0d-b554-caef17731abb"},{"name":"get rule ById","event":[{"listen":"test","script":{"id":"9300bb7e-70a2-484d-979a-77326fb6d1b2","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Rule\", function () {","    var jsonData = pm.response.json();","    postman.setEnvironmentVariable(\"archiveId\", jsonData.archive);","});"]}}],"id":"9f92ad18-20b5-44fa-a423-4c876e45ca11","request":{"method":"GET","header":[{"key":"x-api-token","value":"{{gdprApiToken}}"}],"body":{"mode":"formdata","formdata":[]},"url":"{{gdprApi}}/v1/gdpr/rules/{{ruleId}}?clientId={{clientId}}","description":"<p>Retrieve a rule by id</p>\n","urlObject":{"path":["v1","gdpr","rules","{{ruleId}}"],"host":["{{gdprApi}}"],"query":[{"key":"clientId","value":"{{clientId}}"}],"variable":[]}},"response":[],"_postman_id":"9f92ad18-20b5-44fa-a423-4c876e45ca11"}],"id":"945e8f85-6d5f-491a-b53d-3f79dc23b138","description":"<p>Rules are the processes used at Qualifio to declare a future action, they are linked to GDPR articles.\nTo be executed a Rule should be approved by an user with DPO rights. </p>\n<p>A <strong>direct</strong> option is provided for Rules creation that will allow the rule to be <strong>created</strong> and <strong>executed</strong> on the fly.</p>\n<p>A <strong>test</strong> option in the payload for GDPR rules requests can be provided to simulate a deletion.</p>\n<p><strong>Remark</strong>: Even if a rule is created with the flag direct=true, the execution can take some time to be completed. A manual check (using \"get rule ById\" /GET rules/:ruleId) is required to check if the process is FINISHED. </p>\n<p>We currently support 4 types of rules:</p>\n<ul>\n<li>“Right to be forgotten” Rule</li>\n<li>“Export Profile” Rule</li>\n<li>“Data Retention Policy Configuration” Rule</li>\n<li>“Bulk delete” Rule</li>\n</ul>\n<h2 id=\"right-to-be-forgotten-rule\">“Right to be forgotten” Rule</h2>\n<p>This rule will enable a user to delete all PII about a data subject upon request.\nYou can decide to delete the profiles based on the First name and/or Last name and/or Email.\nValidation will be made by a Qualifio user with DPO rights.</p>\n<h2 id=\"data-access-and-portability-rule\">“Data access and Portability” Rule</h2>\n<p>This rule will enable a user to extract all the PII about a data subject upon request\nYou can decide to export the profiles based on the First name and/or Last name and/or Email.\nValidation will be made by a Qualifio user with DPO rights.</p>\n<h2 id=\"data-retention-policy-configuration-rule\">“Data Retention Policy Configuration” Rule</h2>\n<p>This rule will enable a DPO to set automatic deletion rules about data subjects, for example, 5 weeks after a participation. This will delete the PII even if the campaign is not finished yet.\nThe deletion will occur every hour to smooth up the process.</p>\n<h2 id=\"bulk-delete-rule\">“Bulk delete” Rule</h2>\n<p>This rule will enable a user to delete all PII about data subjects on a specific timeframe (for instance from 01/01/2017 to 01/01/2018. \nValidation will be made by a Qualifio user with DPO rights.</p>\n","event":[{"listen":"prerequest","script":{"id":"58bd0760-233f-4818-ae47-ace0faa0e8c0","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"010469a3-c008-490c-a7b6-d56a49755487","type":"text/javascript","exec":[""]}}],"_postman_id":"945e8f85-6d5f-491a-b53d-3f79dc23b138"},{"name":"Players Profiles","item":[{"name":"searchProfiles","event":[{"listen":"test","script":{"id":"75e4b605-f5e2-4b20-a399-4dd2227da4bc","type":"text/javascript","exec":["pm.test(\"Result should be an Array and not be empty\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData).to.be.an('array');","    pm.expect(jsonData.length).to.not.eql(0);","    ","    postman.setEnvironmentVariable(\"profileId\", jsonData[0].id);","});","",""]}}],"id":"36de422b-88f8-4c78-8968-2cfa7627b896","request":{"method":"GET","header":[{"key":"x-api-token","value":"{{gdprApiToken}}"},{"key":"Accept","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"{{gdprApi}}/v1/gdpr/profiles?clientId={{clientId}}&firstName={{firstName}}","description":"<h1 id=\"query-params\">query params</h1>\n<p>QueryParams must contain at least one of [firstName, lastName, email]</p>\n<p>QueryParams Filters:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>lastName?: string;\nfirstName?: string;\nemail?: string;\n\n</code></pre>","urlObject":{"path":["v1","gdpr","profiles"],"host":["{{gdprApi}}"],"query":[{"key":"clientId","value":"{{clientId}}"},{"key":"firstName","value":"{{firstName}}"}],"variable":[]}},"response":[],"_postman_id":"36de422b-88f8-4c78-8968-2cfa7627b896"}],"id":"7d68b5ee-d8a7-45d7-a46e-262dbe2389aa","_postman_id":"7d68b5ee-d8a7-45d7-a46e-262dbe2389aa","description":""},{"name":"Account Users","item":[{"name":"Get all users for client","event":[{"listen":"test","script":{"id":"e4cf6800-2463-4706-b40b-9bbccc8da2d4","type":"text/javascript","exec":["pm.test(\"Result should be an Array of users\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData).to.be.an('array');","    pm.expect(jsonData.length).to.not.eql(0);","    ","    postman.setEnvironmentVariable(\"userId\", jsonData[0].userId);","});","",""]}}],"id":"b41bd4df-77ab-4962-90e0-4765c0925073","request":{"method":"GET","header":[{"key":"x-api-token","value":"{{gdprApiToken}}"},{"key":"Accept","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"{{gdprApi}}/v1/gdpr/users?clientId={{clientId}}","urlObject":{"path":["v1","gdpr","users"],"host":["{{gdprApi}}"],"query":[{"key":"clientId","value":"{{clientId}}"}],"variable":[]}},"response":[],"_postman_id":"b41bd4df-77ab-4962-90e0-4765c0925073"},{"name":"Configure UserList as Dpo","event":[{"listen":"test","script":{"id":"633d74c6-e9fe-4964-b9ad-ff46a81dc76a","type":"text/javascript","exec":[""]}}],"id":"7d911fcd-aa87-4a01-aa87-a208d4682c8a","request":{"method":"POST","header":[{"key":"x-api-token","value":"{{gdprApiToken}}"},{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"userIds\": [7113, 4860]\n}"},"url":"{{gdprApi}}/v1/gdpr/users/setDPOs?clientId={{clientId}}","description":"<p>The body is the new DPO list, if not specified previous DPOs will be erased.</p>\n","urlObject":{"path":["v1","gdpr","users","setDPOs"],"host":["{{gdprApi}}"],"query":[{"key":"clientId","value":"{{clientId}}"}],"variable":[]}},"response":[],"_postman_id":"7d911fcd-aa87-4a01-aa87-a208d4682c8a"},{"name":"isDPO","event":[{"listen":"test","script":{"id":"633d74c6-e9fe-4964-b9ad-ff46a81dc76a","type":"text/javascript","exec":[""]}}],"id":"1a0c1f46-05c1-4db1-9d8f-05169e406dc2","request":{"method":"GET","header":[{"key":"x-api-token","value":"{{gdprApiToken}}"},{"key":"Accept","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"{{gdprApi}}/v1/gdpr/users/{{userId}}/isDPO?clientId={{clientId}}","urlObject":{"path":["v1","gdpr","users","{{userId}}","isDPO"],"host":["{{gdprApi}}"],"query":[{"key":"clientId","value":"{{clientId}}"}],"variable":[]}},"response":[],"_postman_id":"1a0c1f46-05c1-4db1-9d8f-05169e406dc2"},{"name":"Get all DPO for client","event":[{"listen":"test","script":{"id":"a6cf4adb-27bc-4924-a46c-1adb82799955","type":"text/javascript","exec":["pm.test(\"Result should be an Array of DPO\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData).to.be.an('array');","    pm.expect(jsonData.length).to.not.eql(0);","    ","    postman.setEnvironmentVariable(\"dpoTest\", jsonData[0].userId);","    postman.setEnvironmentVariable(\"dpoId\", jsonData[0].userId);","});","",""]}}],"id":"6262b86a-91be-4f27-a6ac-214cee33b64c","request":{"method":"GET","header":[{"key":"x-api-token","value":"{{gdprApiToken}}"},{"key":"Accept","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"{{gdprApi}}/v1/gdpr/users?clientId={{clientId}}&dpo=true","urlObject":{"path":["v1","gdpr","users"],"host":["{{gdprApi}}"],"query":[{"key":"clientId","value":"{{clientId}}"},{"key":"dpo","value":"true"}],"variable":[]}},"response":[],"_postman_id":"6262b86a-91be-4f27-a6ac-214cee33b64c"}],"id":"0d0f819f-66b8-4681-adc7-8bfa16d0ca62","description":"<h1 id=\"to-do\">to do</h1>\n","event":[{"listen":"prerequest","script":{"id":"01ca2c1b-c21d-4ec9-bff3-4482190a7416","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"79a21486-b547-45df-936d-9dcc81d0fb8d","type":"text/javascript","exec":[""]}}],"_postman_id":"0d0f819f-66b8-4681-adc7-8bfa16d0ca62"},{"name":"Account Settings","item":[{"name":"Get Settings","id":"d1c3281f-478c-4fc4-88c6-32671f4c88b9","request":{"method":"GET","header":[{"key":"x-api-token","value":"{{gdprApiToken}}"}],"body":{"mode":"formdata","formdata":[]},"url":"{{gdprApi}}/v1/gdpr/settings?clientId={{clientId}}","urlObject":{"path":["v1","gdpr","settings"],"host":["{{gdprApi}}"],"query":[{"key":"clientId","value":"{{clientId}}"}],"variable":[]}},"response":[],"_postman_id":"d1c3281f-478c-4fc4-88c6-32671f4c88b9"},{"name":"Set Settings","id":"e975902e-f1a2-4532-81ff-7da55889db27","request":{"method":"PUT","header":[{"key":"x-api-token","value":"{{gdprApiToken}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"clientId\": {{clientId}},\n    \"exportWithValidation\": false,\n    \"collectIpFromAnonymousGames\": true\n}"},"url":"{{gdprApi}}/v1/gdpr/settings?clientId={{clientId}}","urlObject":{"path":["v1","gdpr","settings"],"host":["{{gdprApi}}"],"query":[{"key":"clientId","value":"{{clientId}}"}],"variable":[]}},"response":[],"_postman_id":"e975902e-f1a2-4532-81ff-7da55889db27"}],"id":"a6c22a07-7d4d-4afc-bc52-d68f0621dcff","description":"<p>View and edit GDPR settings.</p>\n<p>Currently available:</p>\n<ul>\n<li><em>exportWithValidation</em> option which defines if the DPO needs to validate an export request</li>\n</ul>\n","event":[{"listen":"prerequest","script":{"id":"c1525c47-90bd-4d03-a8a7-96e9185ea98f","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"2cc8989d-ca64-41aa-8440-bc6b1825e665","type":"text/javascript","exec":[""]}}],"_postman_id":"a6c22a07-7d4d-4afc-bc52-d68f0621dcff"},{"name":"Privacy Texts","item":[{"name":"Get Texts","id":"b4ad87ef-599e-46e4-8181-fa300b225d0f","request":{"method":"GET","header":[{"key":"x-api-token","value":"{{gdprApiToken}}"}],"body":{"mode":"formdata","formdata":[]},"url":"{{gdprApi}}/v1/gdpr/privacyTexts?clientId={{clientId}}","urlObject":{"path":["v1","gdpr","privacyTexts"],"host":["{{gdprApi}}"],"query":[{"key":"clientId","value":"{{clientId}}"}],"variable":[]}},"response":[],"_postman_id":"b4ad87ef-599e-46e4-8181-fa300b225d0f"},{"name":"Set Text","id":"606b02a7-df93-4001-a75d-9966e6c15c1c","request":{"method":"PUT","header":[{"key":"x-api-token","value":"{{gdprApiToken}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"siteName\": \"Landing page - Demo Campaigns\",\n    \"clientId\": {{clientId}},\n    \"siteId\": {{siteId}},\n    \"topMenuAllScreens\": 1,\n    \"privacyTextsForm\": [\n        {\n            \"text\": \"TEST TEXT EN\",\n            \"language\": \"EN\"\n        },\n        {\n            \"text\": \"TEST TEXT FR\",\n            \"language\": \"FR\"\n        }\n    ],\n    \"privacyTextsTopMenu\": [\n    {\n        \"text\": \"TEST TEXT EN\",\n        \"language\": \"EN\"\n    },\n    {\n        \"text\": \"TEST TEXT FR\",\n        \"language\": \"FR\"\n    }\n    ]\n}\n"},"url":"{{gdprApi}}/v1/gdpr/privacyTexts?clientId={{clientId}}","urlObject":{"path":["v1","gdpr","privacyTexts"],"host":["{{gdprApi}}"],"query":[{"key":"clientId","value":"{{clientId}}"}],"variable":[]}},"response":[],"_postman_id":"606b02a7-df93-4001-a75d-9966e6c15c1c"},{"name":"Get Default Text","id":"002d64f9-fcb2-489a-aff3-69ed22ea6a05","request":{"method":"GET","header":[{"key":"x-api-token","value":"{{gdprApiToken}}"}],"body":{"mode":"formdata","formdata":[]},"url":"{{gdprApi}}/v1/gdpr/privacyTexts/default?clientId={{clientId}}","urlObject":{"path":["v1","gdpr","privacyTexts","default"],"host":["{{gdprApi}}"],"query":[{"key":"clientId","value":"{{clientId}}"}],"variable":[]}},"response":[],"_postman_id":"002d64f9-fcb2-489a-aff3-69ed22ea6a05"},{"name":"Set Default Text","id":"ec84b604-e4cf-4eb6-9091-6a945ec5a695","request":{"method":"PUT","header":[{"key":"x-api-token","value":"{{gdprApiToken}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"clientId\": {{clientId}},\n    \"privacyText\": \"DEFAULT TEXT\",\n    \"position\": \"topmenu\",\n    \"topMenuAllScreens\": true\n}"},"url":"{{gdprApi}}/v1/gdpr/privacyTexts/default?clientId={{clientId}}","urlObject":{"path":["v1","gdpr","privacyTexts","default"],"host":["{{gdprApi}}"],"query":[{"key":"clientId","value":"{{clientId}}"}],"variable":[]}},"response":[],"_postman_id":"ec84b604-e4cf-4eb6-9091-6a945ec5a695"}],"id":"4b8024f5-4937-4b3c-97c1-4ccdb1cc8232","_postman_id":"4b8024f5-4937-4b3c-97c1-4ccdb1cc8232","description":""},{"name":"__ Test scenario __","item":[{"name":"Rules Creation","item":[{"name":"Get all DPO for client","event":[{"listen":"test","script":{"id":"79728c7e-469d-4e1f-a72c-c9c661434845","type":"text/javascript","exec":["pm.test(\"Result should be an Array of DPO\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData).to.be.an('array');","    pm.expect(jsonData.length).to.not.eql(0);","    ","    postman.setEnvironmentVariable(\"dpoTest\", jsonData[0].userId);","});","",""]}}],"id":"e008026f-def8-4630-bb1e-cb14cc1fdc1a","request":{"method":"GET","header":[{"key":"x-api-token","value":"{{gdprApiToken}}"},{"key":"Accept","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"{{gdprApi}}/v1/gdpr/users?clientId={{clientId}}&dpo=true","urlObject":{"path":["v1","gdpr","users"],"host":["{{gdprApi}}"],"query":[{"key":"clientId","value":"{{clientId}}"},{"key":"dpo","value":"true"}],"variable":[]}},"response":[],"_postman_id":"e008026f-def8-4630-bb1e-cb14cc1fdc1a"},{"name":"Get all users for client","event":[{"listen":"test","script":{"id":"fa92f2d9-ecac-4bce-b8c9-2e5b4b582c18","type":"text/javascript","exec":["pm.test(\"Result should be an Array of users\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData).to.be.an('array');","    pm.expect(jsonData.length).to.not.eql(0);","    ","    postman.setEnvironmentVariable(\"userIdTest\", jsonData[0].userId);","});","",""]}}],"id":"da9d31d6-6266-4742-9628-ede398f2a194","request":{"method":"GET","header":[{"key":"x-api-token","value":"{{gdprApiToken}}"},{"key":"Accept","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"{{gdprApi}}/v1/gdpr/users?clientId={{clientId}}","urlObject":{"path":["v1","gdpr","users"],"host":["{{gdprApi}}"],"query":[{"key":"clientId","value":"{{clientId}}"}],"variable":[]}},"response":[],"_postman_id":"da9d31d6-6266-4742-9628-ede398f2a194"},{"name":"searchProfiles","event":[{"listen":"test","script":{"id":"5297729c-42a3-4516-8ae9-89ed806994b6","type":"text/javascript","exec":["pm.test(\"Result should be an Array and not be empty\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData).to.be.an('array');","    pm.expect(jsonData.length).to.not.eql(0);","    ","    postman.setEnvironmentVariable(\"profileIdTest\", jsonData[0].id);","});","",""]}}],"id":"320e040a-ff95-4a82-b79b-817071994b1d","request":{"method":"GET","header":[{"key":"x-api-token","value":"{{gdprApiToken}}"},{"key":"Accept","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"{{gdprApi}}/v1/gdpr/profiles?clientId={{clientId}}&firstName={{searchFirstName}}","urlObject":{"path":["v1","gdpr","profiles"],"host":["{{gdprApi}}"],"query":[{"key":"clientId","value":"{{clientId}}"},{"key":"firstName","value":"{{searchFirstName}}"}],"variable":[]}},"response":[],"_postman_id":"320e040a-ff95-4a82-b79b-817071994b1d"},{"name":"new conf BulkDelete Rule","event":[{"listen":"test","script":{"id":"1905b8a5-0c91-41c8-88fe-6c6be9442286","type":"text/javascript","exec":["var jsonData = JSON.parse(responseBody);","postman.setEnvironmentVariable(\"ruleIdBulkStaging\", jsonData._id);","","pm.test(\"Rule is NEW\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.ruleStatus.status).to.eql(\"NEW\");","    pm.expect(jsonData.ruleType).to.eql(\"GDPR_DataRetentionPolicy_BulkDelete\");","});"]}}],"id":"6f7e00b0-26a5-4bf7-9ebb-5fc4b1d5ab26","request":{"method":"POST","header":[{"key":"x-api-token","value":"{{gdprApiToken}}"},{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"ruleType\": \"GDPR_DataRetentionPolicy_BulkDelete\",\n  \"clientId\": {{clientId}},\n  \"ruleTypePayload\": {\n    \"startAt\": \"2017-12-01T00:00:00.0Z\",\n    \"endAt\": \"2018-01-01T00:00:00.0Z\"\n  },\n  \"justification\": \"justification_choice3\",\n  \"userId\": {{userIdTest}}\n}"},"url":"{{gdprApi}}/v1/gdpr/rules/dataRetentionPolicyBulk?clientId={{clientId}}","description":"<p>POST {{host}}/v1/gdpr/rule?clientId=84</p>\n<ul>\n<li>Bulk delete payload</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>interface BulkDelete {\n  // static value\n  ruleType: 'GDPR_DataRetentionPolicy_BulkDelete';\n\n  clientId: number;\n\n  // ruleTypePayload contains the range date to be deleted\n  ruleTypePayload: {\n    startAt: Date;\n    endAt: Date;\n  };\n\n  // a justification text is required for logging\n  justification: string;\n\n  // the Qualifio User ID of the Requester.\n  userId: number;\n}\n</code></pre>","urlObject":{"path":["v1","gdpr","rules","dataRetentionPolicyBulk"],"host":["{{gdprApi}}"],"query":[{"key":"clientId","value":"{{clientId}}"}],"variable":[]}},"response":[],"_postman_id":"6f7e00b0-26a5-4bf7-9ebb-5fc4b1d5ab26"},{"name":"new conf ForgottenRight Rule (explicite)","event":[{"listen":"test","script":{"id":"6e9b7d03-3dc8-4aeb-b5ae-80b48efbbf9c","type":"text/javascript","exec":["var jsonData = JSON.parse(responseBody);","postman.setEnvironmentVariable(\"ruleIdForgottenRightStaging\", jsonData._id);","","pm.test(\"Rule is NEW\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.ruleStatus.status).to.eql(\"NEW\");","    pm.expect(jsonData.ruleType).to.eql(\"GDPR_ForgottenRight\");","});"]}}],"id":"58146552-61a3-4fec-a8d2-472c8574152b","request":{"method":"POST","header":[{"key":"x-api-token","value":"{{gdprApiToken}}"},{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"ruleType\": \"GDPR_ForgottenRight\",\n  \"clientId\": {{clientId}},\n  \"ruleTypePayload\": {\n    \"profiles\": [{{profileIdTest}}]\n  },\n  \"justification\": \"justification_choice3\",\n  \"userId\": {{userIdTest}}\n}"},"url":"{{gdprApi}}/v1/gdpr/rules/forgottenRight?clientId={{clientId}}","urlObject":{"path":["v1","gdpr","rules","forgottenRight"],"host":["{{gdprApi}}"],"query":[{"key":"clientId","value":"{{clientId}}"}],"variable":[]}},"response":[],"_postman_id":"58146552-61a3-4fec-a8d2-472c8574152b"},{"name":"new conf ExportData Rule (explicite)","id":"323a9f99-f9a0-4843-81ad-15a1b885813b","request":{"method":"POST","header":[{"key":"x-api-token","value":"{{gdprApiToken}}"},{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"ruleType\": \"GDPR_ExportData\",\n  \"clientId\": {{clientId}},\n  \"ruleTypePayload\": {\n    \"profiles\": [{{profileIdTest}}]\n  },\n  \"justification\": \"justification_choice3\",\n  \"userId\": {{userIdTest}}\n}"},"url":"{{gdprApi}}/v1/gdpr/rules/exportData?clientId={{clientId}}","urlObject":{"path":["v1","gdpr","rules","exportData"],"host":["{{gdprApi}}"],"query":[{"key":"clientId","value":"{{clientId}}"}],"variable":[]}},"response":[],"_postman_id":"323a9f99-f9a0-4843-81ad-15a1b885813b"},{"name":"Retrieve all Rules for Client","event":[{"listen":"test","script":{"id":"9d7b569d-2f2e-41f3-85e6-55f4e880a5a0","type":"text/javascript","exec":["pm.test(\"Result should be an Array of Rules\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData).to.be.an('array');","    pm.expect(jsonData.length).to.not.eql(0);","});","",""]}}],"id":"7e5e4775-1c73-4a36-afbb-22be7805fa35","request":{"method":"GET","header":[{"key":"x-api-token","value":"{{gdprApiToken}}"}],"body":{"mode":"formdata","formdata":[]},"url":"{{gdprApi}}/v1/gdpr/rules?clientId={{clientId}}","urlObject":{"path":["v1","gdpr","rules"],"host":["{{gdprApi}}"],"query":[{"key":"clientId","value":"{{clientId}}"}],"variable":[]}},"response":[],"_postman_id":"7e5e4775-1c73-4a36-afbb-22be7805fa35"},{"name":"Approve rule","id":"cf4db795-9efa-4029-a2c4-d0b971c17984","request":{"method":"PUT","header":[{"key":"x-api-token","value":"{{gdprApiToken}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"dpo\": {{dpoTest}}\n}"},"url":"{{gdprApi}}/v1/gdpr/rules/{{ruleIdBulkStaging}}/validate?clientId={{clientId}}","description":"<p>approve rule</p>\n","urlObject":{"path":["v1","gdpr","rules","{{ruleIdBulkStaging}}","validate"],"host":["{{gdprApi}}"],"query":[{"key":"clientId","value":"{{clientId}}"}],"variable":[]}},"response":[],"_postman_id":"cf4db795-9efa-4029-a2c4-d0b971c17984"},{"name":"Error rule","event":[{"listen":"test","script":{"id":"190d596a-3cd0-4de3-9266-b5b117c26670","type":"text/javascript","exec":["pm.test(\"Rule Should be Errored and errorMessage should be present\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.ruleStatus.status).to.eql(\"ERRORED\");","    pm.expect(jsonData.ruleStatus.errorMessage).to.eql(\"Test Error Message\");","    pm.expect(jsonData.ruleType).to.eql(\"GDPR_DataRetentionPolicy_BulkDelete\");","});"]}}],"id":"cbe24408-ec5f-45eb-afc7-f8b86f790593","request":{"method":"PUT","header":[{"key":"x-api-token","value":"{{gdprApiToken}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"errorMessage\": \"Test Error Message\"\n}"},"url":"{{gdprApi}}/v1/gdpr/rules/{{ruleIdBulkStaging}}/error?clientId={{clientId}}","description":"<p>Error Rule</p>\n","urlObject":{"path":["v1","gdpr","rules","{{ruleIdBulkStaging}}","error"],"host":["{{gdprApi}}"],"query":[{"key":"clientId","value":"{{clientId}}"}],"variable":[]}},"response":[],"_postman_id":"cbe24408-ec5f-45eb-afc7-f8b86f790593"},{"name":"Finish rule","event":[{"listen":"test","script":{"id":"18d00395-bd14-495b-9665-68216252a72f","type":"text/javascript","exec":["pm.test(\"Rule Should be FINISHED\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.ruleStatus.status).to.eql(\"FINISHED\");","});"]}}],"id":"dda3eeb7-3767-42a0-9c7a-ffce5a13100e","request":{"method":"PUT","header":[{"key":"x-api-token","value":"{{gdprApiToken}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{}"},"url":"{{gdprApi}}/v1/gdpr/rules/{{ruleIdForgottenRightStaging}}/finish?clientId={{clientId}}","description":"<p>Finish Rule</p>\n","urlObject":{"path":["v1","gdpr","rules","{{ruleIdForgottenRightStaging}}","finish"],"host":["{{gdprApi}}"],"query":[{"key":"clientId","value":"{{clientId}}"}],"variable":[]}},"response":[],"_postman_id":"dda3eeb7-3767-42a0-9c7a-ffce5a13100e"}],"id":"b1051daa-eddf-4fed-89f8-5741e3561191","_postman_id":"b1051daa-eddf-4fed-89f8-5741e3561191","description":""},{"name":"Export user profile","item":[{"name":"Set Settings","id":"083e0782-b2c8-4067-b255-da64ddc68bae","request":{"method":"PUT","header":[{"key":"x-api-token","value":"{{gdprApiToken}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"clientId\": {{clientId}},\n    \"exportWithValidation\": true\n}"},"url":"{{gdprApi}}/v1/gdpr/settings?clientId={{clientId}}","urlObject":{"path":["v1","gdpr","settings"],"host":["{{gdprApi}}"],"query":[{"key":"clientId","value":"{{clientId}}"}],"variable":[]}},"response":[],"_postman_id":"083e0782-b2c8-4067-b255-da64ddc68bae"},{"name":"Get all DPO for client","event":[{"listen":"test","script":{"id":"24379378-181d-4db9-8014-4bef13a0bc87","type":"text/javascript","exec":["pm.test(\"Result should be an Array of DPO\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData).to.be.an('array');","    pm.expect(jsonData.length).to.not.eql(0);","    ","    postman.setEnvironmentVariable(\"dpoTest\", jsonData[0].userId);","    postman.setEnvironmentVariable(\"userIdTest\", jsonData[0].userId);","});","",""]}}],"id":"e2356187-7117-4f70-968e-d3106d40412e","request":{"method":"GET","header":[{"key":"x-api-token","value":"{{gdprApiToken}}"},{"key":"Accept","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"{{gdprApi}}/v1/gdpr/users?clientId={{clientId}}&dpo=true","urlObject":{"path":["v1","gdpr","users"],"host":["{{gdprApi}}"],"query":[{"key":"clientId","value":"{{clientId}}"},{"key":"dpo","value":"true"}],"variable":[]}},"response":[],"_postman_id":"e2356187-7117-4f70-968e-d3106d40412e"},{"name":"searchProfiles","event":[{"listen":"test","script":{"id":"5297729c-42a3-4516-8ae9-89ed806994b6","type":"text/javascript","exec":["pm.test(\"Result should be an Array and not be empty\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData).to.be.an('array');","    pm.expect(jsonData.length).to.not.eql(0);","    ","    postman.setEnvironmentVariable(\"profileIdTest\", jsonData[0].id);","});","",""]}}],"id":"14b6ebb3-bf24-4443-9df8-3348fdd6d9b9","request":{"method":"GET","header":[{"key":"x-api-token","value":"{{gdprApiToken}}"},{"key":"Accept","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"{{gdprApi}}/v1/gdpr/profiles?clientId={{clientId}}&firstName={{searchFirstName}}","urlObject":{"path":["v1","gdpr","profiles"],"host":["{{gdprApi}}"],"query":[{"key":"clientId","value":"{{clientId}}"},{"key":"firstName","value":"{{searchFirstName}}"}],"variable":[]}},"response":[],"_postman_id":"14b6ebb3-bf24-4443-9df8-3348fdd6d9b9"},{"name":"new conf Data access and Portability Rule","event":[{"listen":"test","script":{"id":"8a6b3385-63fe-4be0-93ff-2be2ca06f6e5","type":"text/javascript","exec":["var jsonData = JSON.parse(responseBody);","postman.setEnvironmentVariable(\"exportRuleIdTest\", jsonData._id);"]}}],"id":"2f332a7f-a21b-469e-a840-4e050b6f3057","request":{"method":"POST","header":[{"key":"x-api-token","value":"{{gdprApiToken}}"},{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"ruleType\": \"GDPR_ExportData\",\n  \"clientId\": {{clientId}},\n  \"ruleTypePayload\": {\n    \"profiles\": [{{profileIdTest}}]\n  },\n  \"justification\": \"example justification text\",\n  \"userId\": {{userIdTest}}\n}"},"url":"{{gdprApi}}/v1/gdpr/rules/exportData?clientId={{clientId}}","urlObject":{"path":["v1","gdpr","rules","exportData"],"host":["{{gdprApi}}"],"query":[{"key":"clientId","value":"{{clientId}}"}],"variable":[]}},"response":[],"_postman_id":"2f332a7f-a21b-469e-a840-4e050b6f3057"},{"name":"Approve Export Rule","id":"402dd77c-5a9d-4a4a-b1cb-5bed233f1d9c","request":{"method":"PUT","header":[{"key":"x-api-token","value":"{{gdprApiToken}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"dpo\": {{dpoTest}}\n}"},"url":"{{gdprApi}}/v1/gdpr/rules/{{exportRuleIdTest}}/validate?clientId={{clientId}}","description":"<p>approve rule</p>\n","urlObject":{"path":["v1","gdpr","rules","{{exportRuleIdTest}}","validate"],"host":["{{gdprApi}}"],"query":[{"key":"clientId","value":"{{clientId}}"}],"variable":[]}},"response":[],"_postman_id":"402dd77c-5a9d-4a4a-b1cb-5bed233f1d9c"},{"name":"get rule ById (check if finished)","event":[{"listen":"test","script":{"id":"7bd38aea-469e-4a6c-8068-7b3158029aa1","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Rule is FINISHED\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.ruleStatus.status).to.eql(\"FINISHED\");","    postman.setEnvironmentVariable(\"archiveIdTest\", jsonData.archive);","});"]}}],"id":"a7ce2349-03c1-4bb1-8499-79a572fc7df1","request":{"method":"GET","header":[{"key":"x-api-token","value":"{{gdprApiToken}}"}],"body":{"mode":"formdata","formdata":[]},"url":"{{gdprApi}}/v1/gdpr/rules/{{exportRuleIdTest}}?clientId={{clientId}}","description":"<p>Retrieve a rule by id</p>\n","urlObject":{"path":["v1","gdpr","rules","{{exportRuleIdTest}}"],"host":["{{gdprApi}}"],"query":[{"key":"clientId","value":"{{clientId}}"}],"variable":[]}},"response":[],"_postman_id":"a7ce2349-03c1-4bb1-8499-79a572fc7df1"},{"name":"Get Archive from Export (if finished)","id":"a8bf30d7-ecf4-4575-acd1-84ddeb84de2e","request":{"method":"GET","header":[{"key":"x-api-token","value":"{{gdprApiToken}}"}],"body":{"mode":"formdata","formdata":[]},"url":"{{gdprApi}}/v1/gdpr/rules/{{exportRuleIdTest}}/archive/{{archiveIdTest}}?clientId={{clientId}}","urlObject":{"path":["v1","gdpr","rules","{{exportRuleIdTest}}","archive","{{archiveIdTest}}"],"host":["{{gdprApi}}"],"query":[{"key":"clientId","value":"{{clientId}}"}],"variable":[]}},"response":[],"_postman_id":"a8bf30d7-ecf4-4575-acd1-84ddeb84de2e"}],"id":"17b8e775-ba67-49a5-a44b-0c28b6d633cb","_postman_id":"17b8e775-ba67-49a5-a44b-0c28b6d633cb","description":""}],"id":"180ce6a1-e470-44fc-8c88-f1045913eb0e","event":[{"listen":"prerequest","script":{"exec":[""],"id":"ce9166a6-f38e-414b-9523-0e2e1e374937","type":"text/javascript"}},{"listen":"test","script":{"exec":[""],"id":"69b766b3-643d-4b33-8814-5903f5838c9d","type":"text/javascript"}}],"_postman_id":"180ce6a1-e470-44fc-8c88-f1045913eb0e","description":""}],"event":[{"listen":"prerequest","script":{"id":"0b7c11c2-f6ca-4b00-a67e-fed92c7e8097","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"3232ca6d-8184-4405-967e-92c4486db1ab","type":"text/javascript","exec":[""]}}]}