{ "info": { "_postman_id": "c1b3c1b0-248a-40cc-8ca9-2441998a486d", "name": "Caseware Cloud API", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", "_exporter_id": "16378783" }, "item": [ { "name": "Auth", "item": [ { "name": "Auth", "event": [ { "listen": "test", "script": { "exec": [ "const credentials = JSON.parse(responseBody);\r", "pm.environment.set(\"token\", credentials.Token);" ], "type": "text/javascript" } } ], "protocolProfileBehavior": { "disabledSystemHeaders": { "accept": true, "content-type": true } }, "request": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" }, { "key": "ClientId", "value": "{{clientId}}", "type": "text", "disabled": true }, { "key": "ClientSecret", "value": "{{clientSecret}}", "type": "text", "disabled": true }, { "key": "Language", "value": "en", "type": "text", "disabled": true } ], "body": { "mode": "raw", "raw": "{ \"ClientId\": \"{{clientId}}\",\r\n \"ClientSecret\": \"{{clientSecret}}\",\r\n \"Language\": \"en\"\r\n}" }, "url": { "raw": "https://nl.cwcloudpartner.com/nl-beta/ms/caseware-cloud/api/v1/auth/token", "protocol": "https", "host": [ "nl", "cwcloudpartner", "com" ], "path": [ "nl-beta", "ms", "caseware-cloud", "api", "v1", "auth", "token" ] } }, "response": [] } ] }, { "name": "Entities", "item": [ { "name": "GET", "item": [ { "name": "Entities - All", "protocolProfileBehavior": { "disabledSystemHeaders": { "accept": true } }, "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "https://nl.cwcloudpartner.com/nl-beta/ms/caseware-cloud/api/v1/entities?pageSize=100", "protocol": "https", "host": [ "nl", "cwcloudpartner", "com" ], "path": [ "nl-beta", "ms", "caseware-cloud", "api", "v1", "entities" ], "query": [ { "key": "pageSize", "value": "100" } ] } }, "response": [] }, { "name": "Entity filter by Name", "protocolProfileBehavior": { "disabledSystemHeaders": { "accept": true } }, "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "https://nl.cwcloudpartner.com/nl-beta/ms/caseware-cloud/api/v1/entities?search=name%3D'Pietje Puk BV'", "protocol": "https", "host": [ "nl", "cwcloudpartner", "com" ], "path": [ "nl-beta", "ms", "caseware-cloud", "api", "v1", "entities" ], "query": [ { "key": "search", "value": "name%3D'Pietje Puk BV'" } ] } }, "response": [] }, { "name": "Entity filter by EntityNo", "request": { "method": "GET", "header": [], "url": { "raw": "https://nl.cwcloudpartner.com/nl-beta/ms/caseware-cloud/api/v1/entities?search=EntityNo%3D'%20%20%20%20%20%20%20777'", "protocol": "https", "host": [ "nl", "cwcloudpartner", "com" ], "path": [ "nl-beta", "ms", "caseware-cloud", "api", "v1", "entities" ], "query": [ { "key": "search", "value": "EntityNo%3D'%20%20%20%20%20%20%20777'" } ] } }, "response": [] } ] }, { "name": "Create Entity", "protocolProfileBehavior": { "disabledSystemHeaders": { "accept": true } }, "request": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", "raw": "{\r\n \"EntityNo\": \"1133456789\",\r\n \"Name\": \"Pietje\",\r\n \"Type\": \"A\"\r\n}" }, "url": { "raw": "https://nl.cwcloudpartner.com/nl-beta/ms/caseware-cloud/api/v1/entities", "protocol": "https", "host": [ "nl", "cwcloudpartner", "com" ], "path": [ "nl-beta", "ms", "caseware-cloud", "api", "v1", "entities" ] } }, "response": [] }, { "name": "Update Entity", "protocolProfileBehavior": { "disabledSystemHeaders": { "accept": true, "content-type": true } }, "request": { "method": "PATCH", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", "raw": "{\r\n \"EntityNo\": \"1133456789\",\r\n \"Name\": \"Pietje\",\r\n \"ShortName\": \"Piet\",\r\n \"Type\": \"A\"\r\n}" }, "url": { "raw": "https://nl.cwcloudpartner.com/nl-beta/ms/caseware-cloud/api/v1/entities/:entityId", "protocol": "https", "host": [ "nl", "cwcloudpartner", "com" ], "path": [ "nl-beta", "ms", "caseware-cloud", "api", "v1", "entities", ":entityId" ], "variable": [ { "key": "entityId", "value": "{{entityId}}" } ] } }, "response": [] }, { "name": "Delete Entity", "protocolProfileBehavior": { "disabledSystemHeaders": { "accept": true } }, "request": { "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/vnd.api+json", "type": "text" } ], "url": { "raw": "https://nl.cwcloudpartner.com/nl-beta/ms/caseware-cloud/api/v1/entities/:entityId", "protocol": "https", "host": [ "nl", "cwcloudpartner", "com" ], "path": [ "nl-beta", "ms", "caseware-cloud", "api", "v1", "entities", ":entityId" ], "variable": [ { "key": "entityId", "value": "{{entityId}}" } ] } }, "response": [] } ] }, { "name": "Roles", "item": [ { "name": "Roles", "request": { "method": "GET", "header": [], "url": { "raw": "https://nl.cwcloudpartner.com/nl-beta/ms/caseware-cloud/api/v1/roles", "protocol": "https", "host": [ "nl", "cwcloudpartner", "com" ], "path": [ "nl-beta", "ms", "caseware-cloud", "api", "v1", "roles" ] } }, "response": [] } ] }, { "name": "Users", "item": [ { "name": "Users", "protocolProfileBehavior": { "disabledSystemHeaders": { "accept": true, "accept-encoding": true } }, "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "https://nl.cwcloudpartner.com/nl-beta/ms/caseware-cloud/api/v1/users?search=OwnerType%3D'Staff'", "protocol": "https", "host": [ "nl", "cwcloudpartner", "com" ], "path": [ "nl-beta", "ms", "caseware-cloud", "api", "v1", "users" ], "query": [ { "key": "search", "value": "OwnerType%3D'Staff'" } ] } }, "response": [] }, { "name": "User by Id", "request": { "method": "GET", "header": [], "url": { "raw": "https://nl.cwcloudpartner.com/nl-beta/ms/caseware-cloud/api/v1/users/:userId", "protocol": "https", "host": [ "nl", "cwcloudpartner", "com" ], "path": [ "nl-beta", "ms", "caseware-cloud", "api", "v1", "users", ":userId" ], "variable": [ { "key": "userId", "value": "{{userId}}" } ] } }, "response": [] }, { "name": "Create user", "protocolProfileBehavior": { "disabledSystemHeaders": { "content-type": true, "accept": true } }, "request": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", "raw": "{\r\n \"Email\": \"pietje.puk@caseware.nl\",\r\n \"FirstName\": \"Pietje\",\r\n \"LastName\": \"Puk\"\r\n}" }, "url": { "raw": "https://nl.cwcloudpartner.com/nl-beta/ms/caseware-cloud/api/v1/users", "protocol": "https", "host": [ "nl", "cwcloudpartner", "com" ], "path": [ "nl-beta", "ms", "caseware-cloud", "api", "v1", "users" ] } }, "response": [] }, { "name": "Update User", "protocolProfileBehavior": { "disabledSystemHeaders": { "accept": true } }, "request": { "method": "PATCH", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", "raw": "{\r\n \"Email\": \"pietjepuk@caseware.nl\",\r\n \"FirstName\": \"Pietje\",\r\n \"LastName\": \"Puk\",\r\n \"OwnerType\": \"Contact\",\r\n \"UserName\": \"PP\"\r\n}" }, "url": { "raw": "https://nl.cwcloudpartner.com/nl-beta/ms/caseware-cloud/api/v1/users/:userId", "protocol": "https", "host": [ "nl", "cwcloudpartner", "com" ], "path": [ "nl-beta", "ms", "caseware-cloud", "api", "v1", "users", ":userId" ], "variable": [ { "key": "userId", "value": "{{userId}}" } ] } }, "response": [] }, { "name": "Delete User", "request": { "method": "DELETE", "header": [], "url": { "raw": "https://nl.cwcloudpartner.com/nl-beta/ms/caseware-cloud/api/v1/users/:userId", "protocol": "https", "host": [ "nl", "cwcloudpartner", "com" ], "path": [ "nl-beta", "ms", "caseware-cloud", "api", "v1", "users", ":userId" ], "variable": [ { "key": "userId", "value": "{{userId}}" } ] } }, "response": [] } ] } ], "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "event": [ { "listen": "prerequest", "script": { "type": "text/javascript", "exec": [ "" ] } }, { "listen": "test", "script": { "type": "text/javascript", "exec": [ "" ] } } ] }