Chilkat Online Tools

Swift3 / Zoho CRM REST APIs / Leads

Back to Collection Items

func chilkatTest() {
    // This example assumes the Chilkat API to have been previously unlocked.
    // See Global Unlock Sample for sample code.

    let http = CkoHttp()!
    var success: Bool

    let queryParams = CkoJsonObject()!
    queryParams.update("module", value: "Leads")

    // Adds the "Authorization: Bearer <access_token>" header.
    http.authToken = "<access_token>"

    var resp: CkoHttpResponse? = http.quickRequestParams("GET", url: "https://domain.com/crm/v2.1/settings/custom_views", json: queryParams)
    if http.lastMethodSuccess == false {
        print("\(http.lastErrorText!)")
        return
    }

    let sbResponseBody = CkoStringBuilder()!
    resp!.getBodySb(sbResponseBody)

    let jResp = CkoJsonObject()!
    jResp.loadSb(sbResponseBody)
    jResp.emitCompact = false

    print("Response Body:")
    print("\(jResp.emit()!)")

    var respStatusCode: Int = resp!.statusCode.intValue
    print("Response Status Code = \(respStatusCode)")
    if respStatusCode >= 400 {
        print("Response Header:")
        print("\(resp!.header!)")
        print("Failed.")
        resp = nil
        return
    }

    resp = nil

    // 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

    var display_value: String?
    var default: Bool
    var modified_time: String?
    var system_name: String?
    var name: String?
    var system_defined: Bool
    var Name: String?
    var Id: String?
    var id: String?
    var category: String?
    var last_accessed_time: String?
    var favorite: String?
    var created_by: String?
    var modified_by: String?

    var Per_page: Int = jResp.int(of: "info.per_page").intValue
    var Default: String? = jResp.string(of: "info.default")
    var Count: Int = jResp.int(of: "info.count").intValue
    var Public_views: String? = jResp.string(of: "info.translation.public_views")
    var Other_users_views: String? = jResp.string(of: "info.translation.other_users_views")
    var Shared_with_me: String? = jResp.string(of: "info.translation.shared_with_me")
    var Created_by_me: String? = jResp.string(of: "info.translation.created_by_me")
    var Page: Int = jResp.int(of: "info.page").intValue
    var More_records: Bool = jResp.bool(of: "info.more_records")
    var i: Int = 0
    var count_i: Int = jResp.size(ofArray: "custom_views").intValue
    while i < count_i {
        jResp.i = i
        display_value = jResp.string(of: "custom_views[i].display_value")
        default = jResp.bool(of: "custom_views[i].default")
        modified_time = jResp.string(of: "custom_views[i].modified_time")
        system_name = jResp.string(of: "custom_views[i].system_name")
        name = jResp.string(of: "custom_views[i].name")
        system_defined = jResp.bool(of: "custom_views[i].system_defined")
        Name = jResp.string(of: "custom_views[i].modified_by.name")
        Id = jResp.string(of: "custom_views[i].modified_by.id")
        id = jResp.string(of: "custom_views[i].id")
        category = jResp.string(of: "custom_views[i].category")
        last_accessed_time = jResp.string(of: "custom_views[i].last_accessed_time")
        favorite = jResp.string(of: "custom_views[i].favorite")
        created_by = jResp.string(of: "custom_views[i].created_by")
        modified_by = jResp.string(of: "custom_views[i].modified_by")
        i = i + 1
    }


}

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}"
    }
  ]
}