Chilkat Online Tools

delphiDll / Zoho CRM REST APIs / Leads

Back to Collection Items

var
http: HCkHttp;
success: Boolean;
queryParams: HCkJsonObject;
resp: HCkHttpResponse;
sbResponseBody: HCkStringBuilder;
jResp: HCkJsonObject;
respStatusCode: Integer;
display_value: PWideChar;
default: Boolean;
modified_time: PWideChar;
system_name: PWideChar;
name: PWideChar;
system_defined: Boolean;
Name: PWideChar;
Id: PWideChar;
id: PWideChar;
category: PWideChar;
last_accessed_time: PWideChar;
favorite: PWideChar;
created_by: PWideChar;
modified_by: PWideChar;
Per_page: Integer;
Default: PWideChar;
Count: Integer;
Public_views: PWideChar;
Other_users_views: PWideChar;
Shared_with_me: PWideChar;
Created_by_me: PWideChar;
Page: Integer;
More_records: Boolean;
i: Integer;
count_i: Integer;

begin
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.

http := CkHttp_Create();

queryParams := CkJsonObject_Create();
CkJsonObject_UpdateString(queryParams,'module','Leads');

// Adds the "Authorization: Bearer <access_token>" header.
CkHttp_putAuthToken(http,'<access_token>');

resp := CkHttp_QuickRequestParams(http,'GET','https://domain.com/crm/v2.1/settings/custom_views',queryParams);
if (CkHttp_getLastMethodSuccess(http) = False) then
  begin
    Memo1.Lines.Add(CkHttp__lastErrorText(http));
    Exit;
  end;

sbResponseBody := CkStringBuilder_Create();
CkHttpResponse_GetBodySb(resp,sbResponseBody);

jResp := CkJsonObject_Create();
CkJsonObject_LoadSb(jResp,sbResponseBody);
CkJsonObject_putEmitCompact(jResp,False);

Memo1.Lines.Add('Response Body:');
Memo1.Lines.Add(CkJsonObject__emit(jResp));

respStatusCode := CkHttpResponse_getStatusCode(resp);
Memo1.Lines.Add('Response Status Code = ' + IntToStr(respStatusCode));
if (respStatusCode >= 400) then
  begin
    Memo1.Lines.Add('Response Header:');
    Memo1.Lines.Add(CkHttpResponse__header(resp));
    Memo1.Lines.Add('Failed.');
    CkHttpResponse_Dispose(resp);
    Exit;
  end;
CkHttpResponse_Dispose(resp);

// Sample JSON response:
// (Sample code for parsing the JSON response is shown below)

// {
//   "custom_views": [
//     {
//       "display_value": "All Leads",
//       "default": false,
//       "modified_time": "2020-12-17T05:05:24+00:00",
//       "system_name": "ALLVIEWS",
//       "name": "All Open Leads",
//       "system_defined": true,
//       "modified_by": {
//         "name": "Patricia Boyle",
//         "id": "738964000000291009"
//       },
//       "id": "738964000000091501",
//       "category": "public_views",
//       "last_accessed_time": "2020-12-07T07:33:39+00:00",
//       "favorite": null,
//       "created_by": null
//     },
//     {
//       "display_value": "Co-Owner Leads",
//       "default": false,
//       "modified_time": null,
//       "system_name": "COOWNERVIEW",
//       "name": "Co-Owner Leads",
//       "system_defined": true,
//       "modified_by": null,
//       "id": "738964000001918218",
//       "category": "public_views",
//       "last_accessed_time": null,
//       "favorite": null,
//       "created_by": null
//     },
//     {
//       "display_value": "Converted Leads",
//       "default": false,
//       "modified_time": null,
//       "system_name": "CONVERTEDVIEWS",
//       "name": "Converted Leads",
//       "system_defined": true,
//       "modified_by": null,
//       "id": "738964000000093005",
//       "category": "public_views",
//       "last_accessed_time": "2021-05-11T12:35:39+00:00",
//       "favorite": null,
//       "created_by": null
//     },
//     {
//       "display_value": "Junk Leads",
//       "default": false,
//       "modified_time": null,
//       "system_name": "JUNKLEADVIEWS",
//       "name": "Junk Leads",
//       "system_defined": true,
//       "modified_by": null,
//       "id": "738964000000167014",
//       "category": "public_views",
//       "last_accessed_time": null,
//       "favorite": null,
//       "created_by": null
//     },
//     {
//       "display_value": "Leads in Review",
//       "default": false,
//       "modified_time": null,
//       "system_name": "REVIEWPROCESS LEADS",
//       "name": "Leads in Review",
//       "system_defined": true,
//       "modified_by": null,
//       "id": "738964000001661014",
//       "category": "public_views",
//       "last_accessed_time": null,
//       "favorite": null,
//       "created_by": null
//     },
//     {
//       "display_value": "Mailing Labels",
//       "default": false,
//       "modified_time": null,
//       "system_name": "ALLVIEWS",
//       "name": "Mailing Labels",
//       "system_defined": true,
//       "modified_by": null,
//       "id": "738964000000091503",
//       "category": "public_views",
//       "last_accessed_time": null,
//       "favorite": null,
//       "created_by": null
//     },
//     {
//       "display_value": "My Converted Leads",
//       "default": false,
//       "modified_time": null,
//       "system_name": "MYCONVERTEDVIEWS",
//       "name": "My Converted Leads",
//       "system_defined": true,
//       "modified_by": null,
//       "id": "738964000000093007",
//       "category": "public_views",
//       "last_accessed_time": null,
//       "favorite": null,
//       "created_by": null
//     },
//     {
//       "display_value": "My Leads",
//       "default": true,
//       "modified_time": null,
//       "system_name": "MYVIEWS",
//       "name": "My Leads",
//       "system_defined": true,
//       "modified_by": null,
//       "id": "738964000000091563",
//       "category": "public_views",
//       "last_accessed_time": "2021-05-13T06:24:50+00:00",
//       "favorite": null,
//       "created_by": null
//     },
//     {
//       "display_value": "Not Qualified Leads",
//       "default": false,
//       "modified_time": null,
//       "system_name": "NOTQUALIFIEDLEADVIEWS",
//       "name": "Not Qualified Leads",
//       "system_defined": true,
//       "modified_by": null,
//       "id": "738964000000167025",
//       "category": "public_views",
//       "last_accessed_time": null,
//       "favorite": null,
//       "created_by": null
//     },
//     {
//       "display_value": "Open Leads",
//       "default": false,
//       "modified_time": null,
//       "system_name": "OPENLEADVIEWS",
//       "name": "Open Leads",
//       "system_defined": true,
//       "modified_by": null,
//       "id": "738964000000167036",
//       "category": "public_views",
//       "last_accessed_time": null,
//       "favorite": null,
//       "created_by": null
//     },
//     {
//       "display_value": "Recently Created Leads",
//       "default": false,
//       "modified_time": null,
//       "system_name": "RECENTLYCREATED",
//       "name": "Recently Created Leads",
//       "system_defined": true,
//       "modified_by": null,
//       "id": "738964000000091509",
//       "category": "public_views",
//       "last_accessed_time": null,
//       "favorite": null,
//       "created_by": null
//     },
//     {
//       "display_value": "Recently Modified Leads",
//       "default": false,
//       "modified_time": null,
//       "system_name": "RECENTLYMODIFIED",
//       "name": "Recently Modified Leads",
//       "system_defined": true,
//       "modified_by": null,
//       "id": "738964000000091511",
//       "category": "public_views",
//       "last_accessed_time": null,
//       "favorite": null,
//       "created_by": null
//     },
//     {
//       "display_value": "Today's Leads",
//       "default": false,
//       "modified_time": null,
//       "system_name": "today",
//       "name": "Todays Leads",
//       "system_defined": true,
//       "modified_by": null,
//       "id": "738964000000091507",
//       "category": "public_views",
//       "last_accessed_time": null,
//       "favorite": null,
//       "created_by": null
//     },
//     {
//       "display_value": "Unread Leads",
//       "default": false,
//       "modified_time": null,
//       "system_name": "UNREADVIEWS",
//       "name": "Unread Leads",
//       "system_defined": true,
//       "modified_by": null,
//       "id": "738964000000091505",
//       "category": "public_views",
//       "last_accessed_time": null,
//       "favorite": null,
//       "created_by": null
//     },
//     {
//       "display_value": "Unsubscribed Leads",
//       "default": false,
//       "modified_time": null,
//       "system_name": "UNSUBSCRIBED",
//       "name": "Unsubscribed Leads",
//       "system_defined": true,
//       "modified_by": null,
//       "id": "738964000001168011",
//       "category": "public_views",
//       "last_accessed_time": null,
//       "favorite": null,
//       "created_by": null
//     }
//   ],
//   "info": {
//     "per_page": 15,
//     "default": "738964000000091563",
//     "count": 15,
//     "translation": {
//       "public_views": "Public Views",
//       "other_users_views": "Other Users' Views",
//       "shared_with_me": "Shared With Me",
//       "created_by_me": "Created By Me"
//     },
//     "page": 1,
//     "more_records": false
//   }
// }

// Sample code for parsing the JSON response...
// Use this online tool to generate parsing code from sample JSON: Generate JSON Parsing Code

Per_page := CkJsonObject_IntOf(jResp,'info.per_page');
Default := CkJsonObject__stringOf(jResp,'info.default');
Count := CkJsonObject_IntOf(jResp,'info.count');
Public_views := CkJsonObject__stringOf(jResp,'info.translation.public_views');
Other_users_views := CkJsonObject__stringOf(jResp,'info.translation.other_users_views');
Shared_with_me := CkJsonObject__stringOf(jResp,'info.translation.shared_with_me');
Created_by_me := CkJsonObject__stringOf(jResp,'info.translation.created_by_me');
Page := CkJsonObject_IntOf(jResp,'info.page');
More_records := CkJsonObject_BoolOf(jResp,'info.more_records');
i := 0;
count_i := CkJsonObject_SizeOfArray(jResp,'custom_views');
while i < count_i do
  begin
    CkJsonObject_putI(jResp,i);
    display_value := CkJsonObject__stringOf(jResp,'custom_views[i].display_value');
    default := CkJsonObject_BoolOf(jResp,'custom_views[i].default');
    modified_time := CkJsonObject__stringOf(jResp,'custom_views[i].modified_time');
    system_name := CkJsonObject__stringOf(jResp,'custom_views[i].system_name');
    name := CkJsonObject__stringOf(jResp,'custom_views[i].name');
    system_defined := CkJsonObject_BoolOf(jResp,'custom_views[i].system_defined');
    Name := CkJsonObject__stringOf(jResp,'custom_views[i].modified_by.name');
    Id := CkJsonObject__stringOf(jResp,'custom_views[i].modified_by.id');
    id := CkJsonObject__stringOf(jResp,'custom_views[i].id');
    category := CkJsonObject__stringOf(jResp,'custom_views[i].category');
    last_accessed_time := CkJsonObject__stringOf(jResp,'custom_views[i].last_accessed_time');
    favorite := CkJsonObject__stringOf(jResp,'custom_views[i].favorite');
    created_by := CkJsonObject__stringOf(jResp,'custom_views[i].created_by');
    modified_by := CkJsonObject__stringOf(jResp,'custom_views[i].modified_by');
    i := i + 1;
  end;

CkHttp_Dispose(http);
CkJsonObject_Dispose(queryParams);
CkStringBuilder_Dispose(sbResponseBody);
CkJsonObject_Dispose(jResp);

Curl Command

curl -G -d "module=Leads"
	-H "Authorization: Bearer <access_token>"
https://domain.com/crm/v2.1/settings/custom_views

Postman Collection Item JSON

{
  "name": "Leads",
  "request": {
    "auth": {
      "type": "bearer",
      "bearer": [
        {
          "key": "token",
          "value": "{{access-token}}",
          "type": "string"
        }
      ]
    },
    "method": "GET",
    "header": [
    ],
    "url": {
      "raw": "{{api-domain}}/crm/v2.1/settings/custom_views?module=Leads",
      "host": [
        "{{api-domain}}"
      ],
      "path": [
        "crm",
        "v2.1",
        "settings",
        "custom_views"
      ],
      "query": [
        {
          "key": "module",
          "value": "Leads"
        }
      ]
    },
    "description": "To get the metadata of the Leads Module."
  },
  "response": [
    {
      "name": "P1: module",
      "originalRequest": {
        "method": "GET",
        "header": [
        ],
        "url": {
          "raw": "{{api-domain}}/crm/v2.1/settings/custom_views?module=Leads",
          "host": [
            "{{api-domain}}"
          ],
          "path": [
            "crm",
            "v2.1",
            "settings",
            "custom_views"
          ],
          "query": [
            {
              "key": "module",
              "value": "Leads"
            }
          ]
        }
      },
      "status": "OK",
      "code": 200,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Server",
          "value": "ZGS"
        },
        {
          "key": "Date",
          "value": "Thu, 13 May 2021 09:02:25 GMT"
        },
        {
          "key": "Content-Type",
          "value": "application/json;charset=utf-8"
        },
        {
          "key": "Transfer-Encoding",
          "value": "chunked"
        },
        {
          "key": "Connection",
          "value": "keep-alive"
        },
        {
          "key": "Referrer-Policy",
          "value": "strict-origin"
        },
        {
          "key": "X-Content-Type-Options",
          "value": "nosniff"
        },
        {
          "key": "X-XSS-Protection",
          "value": "1; mode=block"
        },
        {
          "key": "Pragma",
          "value": "no-cache"
        },
        {
          "key": "Cache-Control",
          "value": "no-store, no-cache, must-revalidate, private"
        },
        {
          "key": "Expires",
          "value": "Thu, 01 Jan 1970 00:00:00 GMT"
        },
        {
          "key": "X-Frame-Options",
          "value": "SAMEORIGIN"
        },
        {
          "key": "X-ACCESSTOKEN-RESET",
          "value": "2021-05-13T09:52:40+00:00"
        },
        {
          "key": "clientVersion",
          "value": "4031107"
        },
        {
          "key": "clientsubVersion",
          "value": "113b962796fc62946d9303284a64efab"
        },
        {
          "key": "Content-Disposition",
          "value": "attachment; filename=response.json"
        },
        {
          "key": "vary",
          "value": "accept-encoding"
        },
        {
          "key": "Content-Encoding",
          "value": "gzip"
        },
        {
          "key": "Content-Language",
          "value": "en-US"
        },
        {
          "key": "Strict-Transport-Security",
          "value": "max-age=15768000"
        }
      ],
      "cookie": [
      ],
      "body": "{\n    \"custom_views\": [\n        {\n            \"display_value\": \"All Leads\",\n            \"default\": false,\n            \"modified_time\": \"2020-12-17T05:05:24+00:00\",\n            \"system_name\": \"ALLVIEWS\",\n            \"name\": \"All Open Leads\",\n            \"system_defined\": true,\n            \"modified_by\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"738964000000291009\"\n            },\n            \"id\": \"738964000000091501\",\n            \"category\": \"public_views\",\n            \"last_accessed_time\": \"2020-12-07T07:33:39+00:00\",\n            \"favorite\": null,\n            \"created_by\": null\n        },\n        {\n            \"display_value\": \"Co-Owner Leads\",\n            \"default\": false,\n            \"modified_time\": null,\n            \"system_name\": \"COOWNERVIEW\",\n            \"name\": \"Co-Owner Leads\",\n            \"system_defined\": true,\n            \"modified_by\": null,\n            \"id\": \"738964000001918218\",\n            \"category\": \"public_views\",\n            \"last_accessed_time\": null,\n            \"favorite\": null,\n            \"created_by\": null\n        },\n        {\n            \"display_value\": \"Converted Leads\",\n            \"default\": false,\n            \"modified_time\": null,\n            \"system_name\": \"CONVERTEDVIEWS\",\n            \"name\": \"Converted Leads\",\n            \"system_defined\": true,\n            \"modified_by\": null,\n            \"id\": \"738964000000093005\",\n            \"category\": \"public_views\",\n            \"last_accessed_time\": \"2021-05-11T12:35:39+00:00\",\n            \"favorite\": null,\n            \"created_by\": null\n        },\n        {\n            \"display_value\": \"Junk Leads\",\n            \"default\": false,\n            \"modified_time\": null,\n            \"system_name\": \"JUNKLEADVIEWS\",\n            \"name\": \"Junk Leads\",\n            \"system_defined\": true,\n            \"modified_by\": null,\n            \"id\": \"738964000000167014\",\n            \"category\": \"public_views\",\n            \"last_accessed_time\": null,\n            \"favorite\": null,\n            \"created_by\": null\n        },\n        {\n            \"display_value\": \"Leads in Review\",\n            \"default\": false,\n            \"modified_time\": null,\n            \"system_name\": \"REVIEWPROCESS LEADS\",\n            \"name\": \"Leads in Review\",\n            \"system_defined\": true,\n            \"modified_by\": null,\n            \"id\": \"738964000001661014\",\n            \"category\": \"public_views\",\n            \"last_accessed_time\": null,\n            \"favorite\": null,\n            \"created_by\": null\n        },\n        {\n            \"display_value\": \"Mailing Labels\",\n            \"default\": false,\n            \"modified_time\": null,\n            \"system_name\": \"ALLVIEWS\",\n            \"name\": \"Mailing Labels\",\n            \"system_defined\": true,\n            \"modified_by\": null,\n            \"id\": \"738964000000091503\",\n            \"category\": \"public_views\",\n            \"last_accessed_time\": null,\n            \"favorite\": null,\n            \"created_by\": null\n        },\n        {\n            \"display_value\": \"My Converted Leads\",\n            \"default\": false,\n            \"modified_time\": null,\n            \"system_name\": \"MYCONVERTEDVIEWS\",\n            \"name\": \"My Converted Leads\",\n            \"system_defined\": true,\n            \"modified_by\": null,\n            \"id\": \"738964000000093007\",\n            \"category\": \"public_views\",\n            \"last_accessed_time\": null,\n            \"favorite\": null,\n            \"created_by\": null\n        },\n        {\n            \"display_value\": \"My Leads\",\n            \"default\": true,\n            \"modified_time\": null,\n            \"system_name\": \"MYVIEWS\",\n            \"name\": \"My Leads\",\n            \"system_defined\": true,\n            \"modified_by\": null,\n            \"id\": \"738964000000091563\",\n            \"category\": \"public_views\",\n            \"last_accessed_time\": \"2021-05-13T06:24:50+00:00\",\n            \"favorite\": null,\n            \"created_by\": null\n        },\n        {\n            \"display_value\": \"Not Qualified Leads\",\n            \"default\": false,\n            \"modified_time\": null,\n            \"system_name\": \"NOTQUALIFIEDLEADVIEWS\",\n            \"name\": \"Not Qualified Leads\",\n            \"system_defined\": true,\n            \"modified_by\": null,\n            \"id\": \"738964000000167025\",\n            \"category\": \"public_views\",\n            \"last_accessed_time\": null,\n            \"favorite\": null,\n            \"created_by\": null\n        },\n        {\n            \"display_value\": \"Open Leads\",\n            \"default\": false,\n            \"modified_time\": null,\n            \"system_name\": \"OPENLEADVIEWS\",\n            \"name\": \"Open Leads\",\n            \"system_defined\": true,\n            \"modified_by\": null,\n            \"id\": \"738964000000167036\",\n            \"category\": \"public_views\",\n            \"last_accessed_time\": null,\n            \"favorite\": null,\n            \"created_by\": null\n        },\n        {\n            \"display_value\": \"Recently Created Leads\",\n            \"default\": false,\n            \"modified_time\": null,\n            \"system_name\": \"RECENTLYCREATED\",\n            \"name\": \"Recently Created Leads\",\n            \"system_defined\": true,\n            \"modified_by\": null,\n            \"id\": \"738964000000091509\",\n            \"category\": \"public_views\",\n            \"last_accessed_time\": null,\n            \"favorite\": null,\n            \"created_by\": null\n        },\n        {\n            \"display_value\": \"Recently Modified Leads\",\n            \"default\": false,\n            \"modified_time\": null,\n            \"system_name\": \"RECENTLYMODIFIED\",\n            \"name\": \"Recently Modified Leads\",\n            \"system_defined\": true,\n            \"modified_by\": null,\n            \"id\": \"738964000000091511\",\n            \"category\": \"public_views\",\n            \"last_accessed_time\": null,\n            \"favorite\": null,\n            \"created_by\": null\n        },\n        {\n            \"display_value\": \"Today's Leads\",\n            \"default\": false,\n            \"modified_time\": null,\n            \"system_name\": \"today\",\n            \"name\": \"Todays Leads\",\n            \"system_defined\": true,\n            \"modified_by\": null,\n            \"id\": \"738964000000091507\",\n            \"category\": \"public_views\",\n            \"last_accessed_time\": null,\n            \"favorite\": null,\n            \"created_by\": null\n        },\n        {\n            \"display_value\": \"Unread Leads\",\n            \"default\": false,\n            \"modified_time\": null,\n            \"system_name\": \"UNREADVIEWS\",\n            \"name\": \"Unread Leads\",\n            \"system_defined\": true,\n            \"modified_by\": null,\n            \"id\": \"738964000000091505\",\n            \"category\": \"public_views\",\n            \"last_accessed_time\": null,\n            \"favorite\": null,\n            \"created_by\": null\n        },\n        {\n            \"display_value\": \"Unsubscribed Leads\",\n            \"default\": false,\n            \"modified_time\": null,\n            \"system_name\": \"UNSUBSCRIBED\",\n            \"name\": \"Unsubscribed Leads\",\n            \"system_defined\": true,\n            \"modified_by\": null,\n            \"id\": \"738964000001168011\",\n            \"category\": \"public_views\",\n            \"last_accessed_time\": null,\n            \"favorite\": null,\n            \"created_by\": null\n        }\n    ],\n    \"info\": {\n        \"per_page\": 15,\n        \"default\": \"738964000000091563\",\n        \"count\": 15,\n        \"translation\": {\n            \"public_views\": \"Public Views\",\n            \"other_users_views\": \"Other Users' Views\",\n            \"shared_with_me\": \"Shared With Me\",\n            \"created_by_me\": \"Created By Me\"\n        },\n        \"page\": 1,\n        \"more_records\": false\n    }\n}"
    },
    {
      "name": "SUCCESS RESPONSE",
      "originalRequest": {
        "method": "GET",
        "header": [
        ],
        "url": {
          "raw": "{{api-domain}}/crm/v2.1/settings/custom_views?module=Leads",
          "host": [
            "{{api-domain}}"
          ],
          "path": [
            "crm",
            "v2.1",
            "settings",
            "custom_views"
          ],
          "query": [
            {
              "key": "module",
              "value": "Leads"
            }
          ]
        }
      },
      "status": "OK",
      "code": 200,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Server",
          "value": "ZGS"
        },
        {
          "key": "Date",
          "value": "Wed, 05 May 2021 06:28:51 GMT"
        },
        {
          "key": "Content-Type",
          "value": "application/json;charset=utf-8"
        },
        {
          "key": "Transfer-Encoding",
          "value": "chunked"
        },
        {
          "key": "Connection",
          "value": "keep-alive"
        },
        {
          "key": "Referrer-Policy",
          "value": "strict-origin"
        },
        {
          "key": "X-Content-Type-Options",
          "value": "nosniff"
        },
        {
          "key": "X-XSS-Protection",
          "value": "1; mode=block"
        },
        {
          "key": "Pragma",
          "value": "no-cache"
        },
        {
          "key": "Cache-Control",
          "value": "no-cache"
        },
        {
          "key": "Expires",
          "value": "Thu, 01 Jan 1970 00:00:00 GMT"
        },
        {
          "key": "X-Frame-Options",
          "value": "SAMEORIGIN"
        },
        {
          "key": "X-ACCESSTOKEN-RESET",
          "value": "2021-05-05T12:33:08+05:30"
        },
        {
          "key": "clientVersion",
          "value": "4002155"
        },
        {
          "key": "clientsubVersion",
          "value": "bfb2326744b42e5c869a705645ac0006"
        },
        {
          "key": "Content-Disposition",
          "value": "attachment; filename=response.json"
        },
        {
          "key": "vary",
          "value": "accept-encoding"
        },
        {
          "key": "Content-Encoding",
          "value": "gzip"
        },
        {
          "key": "Content-Language",
          "value": "en-US"
        },
        {
          "key": "Strict-Transport-Security",
          "value": "max-age=63072000"
        }
      ],
      "cookie": [
      ],
      "body": "{\n    \"custom_views\": [\n        {\n            \"display_value\": \"All Leads\",\n            \"default\": false,\n            \"modified_time\": null,\n            \"system_name\": \"ALLVIEWS\",\n            \"name\": \"All Open Leads\",\n            \"system_defined\": true,\n            \"modified_by\": null,\n            \"id\": \"4150868000000087501\",\n            \"category\": \"public_views\",\n            \"last_accessed_time\": \"2021-03-17T14:41:16+05:30\",\n            \"favorite\": 2,\n            \"created_by\": null\n        },\n        {\n            \"display_value\": \"Co-Owner Leads\",\n            \"default\": false,\n            \"modified_time\": null,\n            \"system_name\": \"COOWNERVIEW\",\n            \"name\": \"Co-Owner Leads\",\n            \"system_defined\": true,\n            \"modified_by\": null,\n            \"id\": \"4150868000000370007\",\n            \"category\": \"public_views\",\n            \"last_accessed_time\": \"2020-03-18T10:34:11+05:30\",\n            \"favorite\": 3,\n            \"created_by\": null\n        },\n        {\n            \"display_value\": \"Converted Leads\",\n            \"default\": false,\n            \"modified_time\": null,\n            \"system_name\": \"CONVERTEDVIEWS\",\n            \"name\": \"Converted Leads\",\n            \"system_defined\": true,\n            \"modified_by\": null,\n            \"id\": \"4150868000000089005\",\n            \"category\": \"public_views\",\n            \"last_accessed_time\": \"2021-01-18T16:08:59+05:30\",\n            \"favorite\": null,\n            \"created_by\": null\n        },\n        {\n            \"display_value\": \"Junk Leads\",\n            \"default\": false,\n            \"modified_time\": null,\n            \"system_name\": \"JUNKLEADVIEWS\",\n            \"name\": \"Junk Leads\",\n            \"system_defined\": true,\n            \"modified_by\": null,\n            \"id\": \"4150868000000149020\",\n            \"category\": \"public_views\",\n            \"last_accessed_time\": null,\n            \"favorite\": null,\n            \"created_by\": null\n        },\n        {\n            \"display_value\": \"layout\",\n            \"default\": false,\n            \"modified_time\": \"2020-10-28T15:11:50+05:30\",\n            \"system_name\": null,\n            \"name\": \"layout\",\n            \"system_defined\": false,\n            \"modified_by\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"4150868000000225013\"\n            },\n            \"id\": \"4150868000003356003\",\n            \"category\": \"created_by_me\",\n            \"last_accessed_time\": \"2020-10-28T16:23:24+05:30\",\n            \"favorite\": null,\n            \"created_by\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"4150868000000225013\"\n            }\n        },\n        {\n            \"display_value\": \"Leads in Review\",\n            \"default\": false,\n            \"modified_time\": null,\n            \"system_name\": \"REVIEWPROCESS LEADS\",\n            \"name\": \"Leads in Review\",\n            \"system_defined\": true,\n            \"modified_by\": null,\n            \"id\": \"4150868000000943116\",\n            \"category\": \"public_views\",\n            \"last_accessed_time\": \"2020-04-20T15:45:54+05:30\",\n            \"favorite\": null,\n            \"created_by\": null\n        },\n        {\n            \"display_value\": \"Leads under Image Validation\",\n            \"default\": false,\n            \"modified_time\": null,\n            \"system_name\": \"IMAGEVALIDATIONLEADS\",\n            \"name\": \"Leads under Image Validation\",\n            \"system_defined\": true,\n            \"modified_by\": null,\n            \"id\": \"4150868000003343023\",\n            \"category\": \"public_views\",\n            \"last_accessed_time\": null,\n            \"favorite\": null,\n            \"created_by\": null\n        },\n        {\n            \"display_value\": \"Mailing Labels\",\n            \"default\": false,\n            \"modified_time\": null,\n            \"system_name\": \"ALLVIEWS\",\n            \"name\": \"Mailing Labels\",\n            \"system_defined\": true,\n            \"modified_by\": null,\n            \"id\": \"4150868000000087503\",\n            \"category\": \"public_views\",\n            \"last_accessed_time\": null,\n            \"favorite\": null,\n            \"created_by\": null\n        },\n        {\n            \"display_value\": \"Leads Shared by Me\",\n            \"default\": false,\n            \"modified_time\": null,\n            \"system_name\": \"LEADSSHAREDBYME\",\n            \"name\": \"Module Shared by Me\",\n            \"system_defined\": true,\n            \"modified_by\": null,\n            \"id\": \"4150868000001178047\",\n            \"category\": \"public_views\",\n            \"last_accessed_time\": \"2020-09-15T16:57:13+05:30\",\n            \"favorite\": null,\n            \"created_by\": null\n        },\n        {\n            \"display_value\": \"Leads Shared to Me\",\n            \"default\": false,\n            \"modified_time\": null,\n            \"system_name\": \"LEADSSHAREDTOME\",\n            \"name\": \"Module Shared to Me\",\n            \"system_defined\": true,\n            \"modified_by\": null,\n            \"id\": \"4150868000001178041\",\n            \"category\": \"public_views\",\n            \"last_accessed_time\": \"2020-09-15T16:57:21+05:30\",\n            \"favorite\": null,\n            \"created_by\": null\n        },\n        {\n            \"display_value\": \"My Converted Leads\",\n            \"default\": false,\n            \"modified_time\": null,\n            \"system_name\": \"MYCONVERTEDVIEWS\",\n            \"name\": \"My Converted Leads\",\n            \"system_defined\": true,\n            \"modified_by\": null,\n            \"id\": \"4150868000000089007\",\n            \"category\": \"public_views\",\n            \"last_accessed_time\": \"2020-02-19T15:32:59+05:30\",\n            \"favorite\": null,\n            \"created_by\": null\n        },\n        {\n            \"display_value\": \"My Leads\",\n            \"default\": false,\n            \"modified_time\": null,\n            \"system_name\": \"MYVIEWS\",\n            \"name\": \"My Leads\",\n            \"system_defined\": true,\n            \"modified_by\": null,\n            \"id\": \"4150868000000087563\",\n            \"category\": \"public_views\",\n            \"last_accessed_time\": \"2020-06-11T15:35:03+05:30\",\n            \"favorite\": null,\n            \"created_by\": null\n        },\n        {\n            \"display_value\": \"Not Qualified Leads\",\n            \"default\": false,\n            \"modified_time\": null,\n            \"system_name\": \"NOTQUALIFIEDLEADVIEWS\",\n            \"name\": \"Not Qualified Leads\",\n            \"system_defined\": true,\n            \"modified_by\": null,\n            \"id\": \"4150868000000149031\",\n            \"category\": \"public_views\",\n            \"last_accessed_time\": null,\n            \"favorite\": null,\n            \"created_by\": null\n        },\n        {\n            \"display_value\": \"Open Leads\",\n            \"default\": false,\n            \"modified_time\": null,\n            \"system_name\": \"OPENLEADVIEWS\",\n            \"name\": \"Open Leads\",\n            \"system_defined\": true,\n            \"modified_by\": null,\n            \"id\": \"4150868000000149042\",\n            \"category\": \"public_views\",\n            \"last_accessed_time\": \"2019-10-23T09:59:10+05:30\",\n            \"favorite\": null,\n            \"created_by\": null\n        },\n        {\n            \"display_value\": \"Recently Created Leads\",\n            \"default\": false,\n            \"modified_time\": null,\n            \"system_name\": \"RECENTLYCREATED\",\n            \"name\": \"Recently Created Leads\",\n            \"system_defined\": true,\n            \"modified_by\": null,\n            \"id\": \"4150868000000087509\",\n            \"category\": \"public_views\",\n            \"last_accessed_time\": null,\n            \"favorite\": null,\n            \"created_by\": null\n        },\n        {\n            \"display_value\": \"Recently Modified Leads\",\n            \"default\": false,\n            \"modified_time\": null,\n            \"system_name\": \"RECENTLYMODIFIED\",\n            \"name\": \"Recently Modified Leads\",\n            \"system_defined\": true,\n            \"modified_by\": null,\n            \"id\": \"4150868000000087511\",\n            \"category\": \"public_views\",\n            \"last_accessed_time\": \"2020-02-26T11:43:48+05:30\",\n            \"favorite\": null,\n            \"created_by\": null\n        },\n        {\n            \"display_value\": \"sample\",\n            \"default\": false,\n            \"modified_time\": \"2021-03-04T00:53:52+05:30\",\n            \"system_name\": null,\n            \"name\": \"sample\",\n            \"system_defined\": false,\n            \"modified_by\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"4150868000000225013\"\n            },\n            \"id\": \"4150868000001818003\",\n            \"category\": \"created_by_me\",\n            \"last_accessed_time\": \"2021-03-04T00:53:53+05:30\",\n            \"favorite\": 1,\n            \"created_by\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"4150868000000225013\"\n            }\n        },\n        {\n            \"display_value\": \"Sample View\",\n            \"default\": true,\n            \"modified_time\": \"2021-03-04T00:54:53+05:30\",\n            \"system_name\": null,\n            \"name\": \"Sample View\",\n            \"system_defined\": false,\n            \"modified_by\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"4150868000000225013\"\n            },\n            \"id\": \"4150868000004520004\",\n            \"category\": \"created_by_me\",\n            \"last_accessed_time\": \"2021-05-04T17:11:45+05:30\",\n            \"favorite\": null,\n            \"created_by\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"4150868000000225013\"\n            }\n        },\n        {\n            \"display_value\": \"Sample View1\",\n            \"default\": false,\n            \"modified_time\": null,\n            \"system_name\": null,\n            \"name\": \"Sample View1\",\n            \"system_defined\": false,\n            \"modified_by\": null,\n            \"id\": \"4150868000004520009\",\n            \"category\": \"created_by_me\",\n            \"last_accessed_time\": null,\n            \"favorite\": null,\n            \"created_by\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"4150868000000225013\"\n            }\n        },\n        {\n            \"display_value\": \"Sample View2\",\n            \"default\": false,\n            \"modified_time\": null,\n            \"system_name\": null,\n            \"name\": \"Sample View2\",\n            \"system_defined\": false,\n            \"modified_by\": null,\n            \"id\": \"4150868000004520014\",\n            \"category\": \"created_by_me\",\n            \"last_accessed_time\": null,\n            \"favorite\": null,\n            \"created_by\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"4150868000000225013\"\n            }\n        },\n        {\n            \"display_value\": \"Sample View3\",\n            \"default\": false,\n            \"modified_time\": \"2021-02-02T10:57:42+05:30\",\n            \"system_name\": null,\n            \"name\": \"Sample View3\",\n            \"system_defined\": false,\n            \"modified_by\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"4150868000000225013\"\n            },\n            \"id\": \"4150868000004520019\",\n            \"category\": \"created_by_me\",\n            \"last_accessed_time\": null,\n            \"favorite\": null,\n            \"created_by\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"4150868000000225013\"\n            }\n        },\n        {\n            \"display_value\": \"sample123\",\n            \"default\": false,\n            \"modified_time\": \"2020-07-24T12:50:04+05:30\",\n            \"system_name\": null,\n            \"name\": \"sample123\",\n            \"system_defined\": false,\n            \"modified_by\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"4150868000000225013\"\n            },\n            \"id\": \"4150868000002724009\",\n            \"category\": \"created_by_me\",\n            \"last_accessed_time\": \"2021-02-02T10:37:33+05:30\",\n            \"favorite\": 0,\n            \"created_by\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"4150868000000225013\"\n            }\n        },\n        {\n            \"display_value\": \"Today's Leads\",\n            \"default\": false,\n            \"modified_time\": null,\n            \"system_name\": \"today\",\n            \"name\": \"Todays Leads\",\n            \"system_defined\": true,\n            \"modified_by\": null,\n            \"id\": \"4150868000000087507\",\n            \"category\": \"public_views\",\n            \"last_accessed_time\": \"2020-02-28T11:26:32+05:30\",\n            \"favorite\": null,\n            \"created_by\": null\n        },\n        {\n            \"display_value\": \"Unread Leads\",\n            \"default\": false,\n            \"modified_time\": null,\n            \"system_name\": \"UNREADVIEWS\",\n            \"name\": \"Unread Leads\",\n            \"system_defined\": true,\n            \"modified_by\": null,\n            \"id\": \"4150868000000087505\",\n            \"category\": \"public_views\",\n            \"last_accessed_time\": \"2021-01-08T11:13:35+05:30\",\n            \"favorite\": null,\n            \"created_by\": null\n        },\n        {\n            \"display_value\": \"Unsubscribed Leads\",\n            \"default\": false,\n            \"modified_time\": null,\n            \"system_name\": \"UNSUBSCRIBED\",\n            \"name\": \"Unsubscribed Leads\",\n            \"system_defined\": true,\n            \"modified_by\": null,\n            \"id\": \"4150868000002791068\",\n            \"category\": \"public_views\",\n            \"last_accessed_time\": null,\n            \"favorite\": null,\n            \"created_by\": null\n        },\n        {\n            \"display_value\": \"Untitled View\",\n            \"default\": false,\n            \"modified_time\": \"2020-10-21T12:01:19+05:30\",\n            \"system_name\": null,\n            \"name\": \"Untitled View\",\n            \"system_defined\": false,\n            \"modified_by\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"4150868000000225013\"\n            },\n            \"id\": \"4150868000003259013\",\n            \"category\": \"created_by_me\",\n            \"last_accessed_time\": \"2020-10-28T15:11:00+05:30\",\n            \"favorite\": null,\n            \"created_by\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"4150868000000225013\"\n            }\n        }\n    ],\n    \"info\": {\n        \"per_page\": 26,\n        \"default\": \"4150868000004520004\",\n        \"count\": 26,\n        \"translation\": {\n            \"public_views\": \"Public Views\",\n            \"other_users_views\": \"Other Users' Views\",\n            \"shared_with_me\": \"Shared With Me\",\n            \"created_by_me\": \"Created By Me\"\n        },\n        \"page\": 1,\n        \"more_records\": false\n    }\n}"
    },
    {
      "name": "REQUIRED_PARAM_MISSING",
      "originalRequest": {
        "method": "GET",
        "header": [
        ],
        "url": {
          "raw": "{{api-domain}}/crm/v2.1/settings/custom_views",
          "host": [
            "{{api-domain}}"
          ],
          "path": [
            "crm",
            "v2.1",
            "settings",
            "custom_views"
          ]
        }
      },
      "status": "Bad Request",
      "code": 400,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Server",
          "value": "ZGS"
        },
        {
          "key": "Date",
          "value": "Wed, 05 May 2021 06:29:12 GMT"
        },
        {
          "key": "Content-Type",
          "value": "application/json;charset=utf-8"
        },
        {
          "key": "Content-Length",
          "value": "133"
        },
        {
          "key": "Connection",
          "value": "keep-alive"
        },
        {
          "key": "Referrer-Policy",
          "value": "strict-origin"
        },
        {
          "key": "X-Content-Type-Options",
          "value": "nosniff"
        },
        {
          "key": "X-XSS-Protection",
          "value": "1; mode=block"
        },
        {
          "key": "X-Frame-Options",
          "value": "SAMEORIGIN"
        },
        {
          "key": "X-Download-Options",
          "value": "noopen"
        }
      ],
      "cookie": [
      ],
      "body": "{\n    \"code\": \"REQUIRED_PARAM_MISSING\",\n    \"details\": {\n        \"param\": \"module\"\n    },\n    \"message\": \"One of the expected parameter is missing\",\n    \"status\": \"error\"\n}"
    },
    {
      "name": "INVALID_MODULE",
      "originalRequest": {
        "method": "GET",
        "header": [
        ],
        "url": {
          "raw": "{{api-domain}}/crm/v2.1/settings/custom_views?module=Lead",
          "host": [
            "{{api-domain}}"
          ],
          "path": [
            "crm",
            "v2.1",
            "settings",
            "custom_views"
          ],
          "query": [
            {
              "key": "module",
              "value": "Lead"
            }
          ]
        }
      },
      "status": "Bad Request",
      "code": 400,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Server",
          "value": "ZGS"
        },
        {
          "key": "Date",
          "value": "Wed, 05 May 2021 06:29:27 GMT"
        },
        {
          "key": "Content-Type",
          "value": "application/json;charset=utf-8"
        },
        {
          "key": "Content-Length",
          "value": "110"
        },
        {
          "key": "Connection",
          "value": "keep-alive"
        },
        {
          "key": "Referrer-Policy",
          "value": "strict-origin"
        },
        {
          "key": "X-Content-Type-Options",
          "value": "nosniff"
        },
        {
          "key": "X-XSS-Protection",
          "value": "1; mode=block"
        },
        {
          "key": "Pragma",
          "value": "no-cache"
        },
        {
          "key": "Cache-Control",
          "value": "no-cache"
        },
        {
          "key": "Expires",
          "value": "Thu, 01 Jan 1970 00:00:00 GMT"
        },
        {
          "key": "X-Frame-Options",
          "value": "SAMEORIGIN"
        },
        {
          "key": "X-ACCESSTOKEN-RESET",
          "value": "2021-05-05T12:33:08+05:30"
        },
        {
          "key": "clientVersion",
          "value": "4002155"
        },
        {
          "key": "clientsubVersion",
          "value": "bfb2326744b42e5c869a705645ac0006"
        },
        {
          "key": "Content-Disposition",
          "value": "attachment; filename=response.json"
        },
        {
          "key": "X-Download-Options",
          "value": "noopen"
        },
        {
          "key": "Content-Language",
          "value": "en-US"
        }
      ],
      "cookie": [
      ],
      "body": "{\n    \"code\": \"INVALID_MODULE\",\n    \"details\": {},\n    \"message\": \"the module name given seems to be invalid\",\n    \"status\": \"error\"\n}"
    },
    {
      "name": "INVALID_URL_PATTERN",
      "originalRequest": {
        "method": "GET",
        "header": [
        ],
        "url": {
          "raw": "{{api-domain}}/crm/v2.1/settings/custom_viewsmodule=Leads",
          "host": [
            "{{api-domain}}"
          ],
          "path": [
            "crm",
            "v2.1",
            "settings",
            "custom_viewsmodule=Leads"
          ]
        }
      },
      "status": "Not Found",
      "code": 404,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Server",
          "value": "ZGS"
        },
        {
          "key": "Date",
          "value": "Wed, 05 May 2021 06:29:41 GMT"
        },
        {
          "key": "Content-Type",
          "value": "application/json;charset=utf-8"
        },
        {
          "key": "Content-Length",
          "value": "131"
        },
        {
          "key": "Connection",
          "value": "keep-alive"
        },
        {
          "key": "Referrer-Policy",
          "value": "strict-origin"
        },
        {
          "key": "X-Content-Type-Options",
          "value": "nosniff"
        },
        {
          "key": "X-XSS-Protection",
          "value": "1; mode=block"
        },
        {
          "key": "Pragma",
          "value": "no-cache"
        },
        {
          "key": "Cache-Control",
          "value": "no-cache"
        },
        {
          "key": "Expires",
          "value": "Thu, 01 Jan 1970 00:00:00 GMT"
        },
        {
          "key": "X-Frame-Options",
          "value": "SAMEORIGIN"
        },
        {
          "key": "X-ACCESSTOKEN-RESET",
          "value": "2021-05-05T12:33:08+05:30"
        },
        {
          "key": "Content-Disposition",
          "value": "attachment; filename=response.json"
        },
        {
          "key": "X-Download-Options",
          "value": "noopen"
        },
        {
          "key": "Content-Language",
          "value": "en-US"
        }
      ],
      "cookie": [
      ],
      "body": "{\n    \"code\": \"INVALID_URL_PATTERN\",\n    \"details\": {},\n    \"message\": \"Please check if the URL trying to access is a correct one\",\n    \"status\": \"error\"\n}"
    },
    {
      "name": "INVALID_REQUEST_METHOD",
      "originalRequest": {
        "method": "COPY",
        "header": [
        ],
        "url": {
          "raw": "{{api-domain}}/crm/v2.1/settings/custom_views?module=Leads",
          "host": [
            "{{api-domain}}"
          ],
          "path": [
            "crm",
            "v2.1",
            "settings",
            "custom_views"
          ],
          "query": [
            {
              "key": "module",
              "value": "Leads"
            }
          ]
        }
      },
      "status": "Bad Request",
      "code": 400,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Server",
          "value": "ZGS"
        },
        {
          "key": "Date",
          "value": "Wed, 05 May 2021 06:30:05 GMT"
        },
        {
          "key": "Content-Type",
          "value": "application/json;charset=utf-8"
        },
        {
          "key": "Content-Length",
          "value": "124"
        },
        {
          "key": "Connection",
          "value": "keep-alive"
        },
        {
          "key": "X-Frame-Options",
          "value": "deny"
        },
        {
          "key": "X-Download-Options",
          "value": "noopen"
        },
        {
          "key": "X-Content-Type-Options",
          "value": "nosniff"
        }
      ],
      "cookie": [
      ],
      "body": "{\n    \"code\": \"INVALID_REQUEST_METHOD\",\n    \"details\": {},\n    \"message\": \"The http request method type is not a valid one\",\n    \"status\": \"error\"\n}"
    },
    {
      "name": "AUTHENTICATION_FAILURE",
      "originalRequest": {
        "method": "GET",
        "header": [
        ],
        "url": {
          "raw": "{{api-domain}}/crm/v2.1/settings/custom_views?module=Leads",
          "host": [
            "{{api-domain}}"
          ],
          "path": [
            "crm",
            "v2.1",
            "settings",
            "custom_views"
          ],
          "query": [
            {
              "key": "module",
              "value": "Leads"
            }
          ]
        }
      },
      "status": "Unauthorized",
      "code": 401,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Server",
          "value": "ZGS"
        },
        {
          "key": "Date",
          "value": "Wed, 05 May 2021 06:30:49 GMT"
        },
        {
          "key": "Content-Type",
          "value": "application/json;charset=utf-8"
        },
        {
          "key": "Content-Length",
          "value": "98"
        },
        {
          "key": "Connection",
          "value": "keep-alive"
        },
        {
          "key": "Referrer-Policy",
          "value": "strict-origin"
        },
        {
          "key": "X-Content-Type-Options",
          "value": "nosniff"
        },
        {
          "key": "X-XSS-Protection",
          "value": "1; mode=block"
        },
        {
          "key": "Pragma",
          "value": "no-cache"
        },
        {
          "key": "Cache-Control",
          "value": "no-cache"
        },
        {
          "key": "Expires",
          "value": "Thu, 01 Jan 1970 00:00:00 GMT"
        },
        {
          "key": "X-Frame-Options",
          "value": "SAMEORIGIN"
        },
        {
          "key": "X-Download-Options",
          "value": "noopen"
        }
      ],
      "cookie": [
      ],
      "body": "{\n    \"code\": \"AUTHENTICATION_FAILURE\",\n    \"details\": {},\n    \"message\": \"Authentication failed\",\n    \"status\": \"error\"\n}"
    },
    {
      "name": "OAUTH_SCOPE_MISMATCH",
      "originalRequest": {
        "method": "GET",
        "header": [
        ],
        "url": {
          "raw": "{{api-domain}}/crm/v2.1/settings/custom_views?module=Leads",
          "host": [
            "{{api-domain}}"
          ],
          "path": [
            "crm",
            "v2.1",
            "settings",
            "custom_views"
          ],
          "query": [
            {
              "key": "module",
              "value": "Leads"
            }
          ]
        }
      },
      "status": "Unauthorized",
      "code": 401,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Server",
          "value": "ZGS"
        },
        {
          "key": "Date",
          "value": "Wed, 05 May 2021 07:31:25 GMT"
        },
        {
          "key": "Content-Type",
          "value": "application/json;charset=utf-8"
        },
        {
          "key": "Content-Length",
          "value": "113"
        },
        {
          "key": "Connection",
          "value": "keep-alive"
        },
        {
          "key": "Referrer-Policy",
          "value": "strict-origin"
        },
        {
          "key": "X-Content-Type-Options",
          "value": "nosniff"
        },
        {
          "key": "X-XSS-Protection",
          "value": "1; mode=block"
        },
        {
          "key": "Pragma",
          "value": "no-cache"
        },
        {
          "key": "Cache-Control",
          "value": "no-cache"
        },
        {
          "key": "Expires",
          "value": "Thu, 01 Jan 1970 00:00:00 GMT"
        },
        {
          "key": "X-Frame-Options",
          "value": "SAMEORIGIN"
        },
        {
          "key": "X-Download-Options",
          "value": "noopen"
        }
      ],
      "cookie": [
      ],
      "body": "{\n    \"code\": \"OAUTH_SCOPE_MISMATCH\",\n    \"details\": {},\n    \"message\": \"invalid oauth scope to access this URL\",\n    \"status\": \"error\"\n}"
    }
  ]
}