Chilkat Online Tools

SQL Server / Zoho CRM REST APIs / Create Bulk Read Job (ICS)

Back to Collection Items

-- Important: See this note about string length limitations for strings returned by sp_OAMethod calls.
--
CREATE PROCEDURE ChilkatSample
AS
BEGIN
    DECLARE @hr int
    DECLARE @iTmp0 int
    -- Important: Do not use nvarchar(max).  See the warning about using nvarchar(max).
    DECLARE @sTmp0 nvarchar(4000)
    -- This example assumes the Chilkat API to have been previously unlocked.
    -- See Global Unlock Sample for sample code.

    DECLARE @http int
    -- Use "Chilkat_9_5_0.Http" for versions of Chilkat < 10.0.0
    EXEC @hr = sp_OACreate 'Chilkat.Http', @http OUT
    IF @hr <> 0
    BEGIN
        PRINT 'Failed to create ActiveX component'
        RETURN
    END

    DECLARE @success int

    -- Use this online tool to generate code from sample JSON: Generate Code to Create JSON

    -- The following JSON is sent in the request body.

    -- {
    --   "callback": {
    --     "url": "https://www.example.com/callback",
    --     "method": "post"
    --   },
    --   "query": {
    --     "module": "Contacts",
    --     "fields": [
    --       "Last_Name",
    --       "Owner",
    --       "Owner.last_name",
    --       "Account_Name.Account_Name",
    --       "Account_Name.Phone",
    --       "Lead_Source",
    --       "Created_Time"
    --     ],
    --     "criteria": {
    --       "group_operator": "or",
    --       "group": [
    --         {
    --           "api_name": "Lead_Source",
    --           "comparator": "equal",
    --           "value": "Advertisement"
    --         },
    --         {
    --           "api_name": "Owner.last_name",
    --           "comparator": "equal",
    --           "value": "Boyle"
    --         },
    --         {
    --           "api_name": "Account_Name.Phone",
    --           "comparator": "contains",
    --           "value": "5"
    --         }
    --       ]
    --     },
    --     "page": 1
    --   }
    -- }

    DECLARE @json int
    -- Use "Chilkat_9_5_0.JsonObject" for versions of Chilkat < 10.0.0
    EXEC @hr = sp_OACreate 'Chilkat.JsonObject', @json OUT

    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'callback.url', 'https://www.example.com/callback'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'callback.method', 'post'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'query.module', 'Contacts'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'query.fields[0]', 'Last_Name'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'query.fields[1]', 'Owner'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'query.fields[2]', 'Owner.last_name'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'query.fields[3]', 'Account_Name.Account_Name'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'query.fields[4]', 'Account_Name.Phone'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'query.fields[5]', 'Lead_Source'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'query.fields[6]', 'Created_Time'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'query.criteria.group_operator', 'or'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'query.criteria.group[0].api_name', 'Lead_Source'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'query.criteria.group[0].comparator', 'equal'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'query.criteria.group[0].value', 'Advertisement'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'query.criteria.group[1].api_name', 'Owner.last_name'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'query.criteria.group[1].comparator', 'equal'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'query.criteria.group[1].value', 'Boyle'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'query.criteria.group[2].api_name', 'Account_Name.Phone'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'query.criteria.group[2].comparator', 'contains'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'query.criteria.group[2].value', '5'
    EXEC sp_OAMethod @json, 'UpdateInt', @success OUT, 'query.page', 1

    -- Adds the "Authorization: Bearer {{access-token}}" header.
    EXEC sp_OASetProperty @http, 'AuthToken', '{{access-token}}'
    EXEC sp_OAMethod @http, 'SetRequestHeader', NULL, 'Content-Type', 'application/json'

    DECLARE @resp int
    EXEC sp_OAMethod @http, 'PostJson3', @resp OUT, 'https://domain.com/crm/bulk/v2/read', 'application/json', @json
    EXEC sp_OAGetProperty @http, 'LastMethodSuccess', @iTmp0 OUT
    IF @iTmp0 = 0
      BEGIN
        EXEC sp_OAGetProperty @http, 'LastErrorText', @sTmp0 OUT
        PRINT @sTmp0
        EXEC @hr = sp_OADestroy @http
        EXEC @hr = sp_OADestroy @json
        RETURN
      END

    DECLARE @sbResponseBody int
    -- Use "Chilkat_9_5_0.StringBuilder" for versions of Chilkat < 10.0.0
    EXEC @hr = sp_OACreate 'Chilkat.StringBuilder', @sbResponseBody OUT

    EXEC sp_OAMethod @resp, 'GetBodySb', @success OUT, @sbResponseBody

    DECLARE @jResp int
    -- Use "Chilkat_9_5_0.JsonObject" for versions of Chilkat < 10.0.0
    EXEC @hr = sp_OACreate 'Chilkat.JsonObject', @jResp OUT

    EXEC sp_OAMethod @jResp, 'LoadSb', @success OUT, @sbResponseBody
    EXEC sp_OASetProperty @jResp, 'EmitCompact', 0


    PRINT 'Response Body:'
    EXEC sp_OAMethod @jResp, 'Emit', @sTmp0 OUT
    PRINT @sTmp0

    DECLARE @respStatusCode int
    EXEC sp_OAGetProperty @resp, 'StatusCode', @respStatusCode OUT

    PRINT 'Response Status Code = ' + @respStatusCode
    IF @respStatusCode >= 400
      BEGIN

        PRINT 'Response Header:'
        EXEC sp_OAGetProperty @resp, 'Header', @sTmp0 OUT
        PRINT @sTmp0

        PRINT 'Failed.'
        EXEC @hr = sp_OADestroy @resp

        EXEC @hr = sp_OADestroy @http
        EXEC @hr = sp_OADestroy @json
        EXEC @hr = sp_OADestroy @sbResponseBody
        EXEC @hr = sp_OADestroy @jResp
        RETURN
      END
    EXEC @hr = sp_OADestroy @resp

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

    -- {
    --   "data": [
    --     {
    --       "status": "success",
    --       "code": "ADDED_SUCCESSFULLY",
    --       "message": "Added successfully.",
    --       "details": {
    --         "id": "738964000002152095",
    --         "operation": "read",
    --         "state": "ADDED",
    --         "created_by": {
    --           "id": "738964000000291009",
    --           "name": "Patricia Boyle"
    --         },
    --         "created_time": "2021-05-12T06:54:24+00:00"
    --       }
    --     }
    --   ],
    --   "info": {}
    -- }

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

    DECLARE @status nvarchar(4000)

    DECLARE @code nvarchar(4000)

    DECLARE @message nvarchar(4000)

    DECLARE @Id nvarchar(4000)

    DECLARE @Operation nvarchar(4000)

    DECLARE @State nvarchar(4000)

    DECLARE @Created_byId nvarchar(4000)

    DECLARE @Name nvarchar(4000)

    DECLARE @Created_time nvarchar(4000)

    DECLARE @i int
    SELECT @i = 0
    DECLARE @count_i int
    EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_i OUT, 'data'
    WHILE @i < @count_i
      BEGIN
        EXEC sp_OASetProperty @jResp, 'I', @i
        EXEC sp_OAMethod @jResp, 'StringOf', @status OUT, 'data[i].status'
        EXEC sp_OAMethod @jResp, 'StringOf', @code OUT, 'data[i].code'
        EXEC sp_OAMethod @jResp, 'StringOf', @message OUT, 'data[i].message'
        EXEC sp_OAMethod @jResp, 'StringOf', @Id OUT, 'data[i].details.id'
        EXEC sp_OAMethod @jResp, 'StringOf', @Operation OUT, 'data[i].details.operation'
        EXEC sp_OAMethod @jResp, 'StringOf', @State OUT, 'data[i].details.state'
        EXEC sp_OAMethod @jResp, 'StringOf', @Created_byId OUT, 'data[i].details.created_by.id'
        EXEC sp_OAMethod @jResp, 'StringOf', @Name OUT, 'data[i].details.created_by.name'
        EXEC sp_OAMethod @jResp, 'StringOf', @Created_time OUT, 'data[i].details.created_time'
        SELECT @i = @i + 1
      END

    EXEC @hr = sp_OADestroy @http
    EXEC @hr = sp_OADestroy @json
    EXEC @hr = sp_OADestroy @sbResponseBody
    EXEC @hr = sp_OADestroy @jResp


END
GO

Curl Command

curl -X POST
	-H "Authorization: Bearer <access_token>"
	-H "Authorization: Bearer {{access-token}}"
	-H "Content-Type: application/json"
	-d '{
  "callback": {
    "url": "https://www.example.com/callback",
    "method": "post"
  },
  "query": {
    "module": "Contacts",
    "fields": [
      "Last_Name",
      "Owner",
      "Owner.last_name",
      "Account_Name.Account_Name",
      "Account_Name.Phone",
      "Lead_Source",
      "Created_Time"
    ],
    "criteria": {
      "group_operator": "or",
      "group": [
        {
          "api_name": "Lead_Source",
          "comparator": "equal",
          "value": "Advertisement"
        },
        {
          "api_name": "Owner.last_name",
          "comparator": "equal",
          "value": "Boyle"
        },
        {
          "api_name": "Account_Name.Phone",
          "comparator": "contains",
          "value": "5"
        }
      ]
    },
    "page": 1
  }
}'
https://domain.com/crm/bulk/v2/read

Postman Collection Item JSON

{
  "name": "Create Bulk Read Job (ICS)",
  "request": {
    "auth": {
      "type": "bearer",
      "bearer": [
        {
          "key": "token",
          "value": "{{access-token}}",
          "type": "string"
        }
      ]
    },
    "method": "POST",
    "header": [
      {
        "warning": "This is a duplicate header and will be overridden by the Authorization header generated by Postman.",
        "key": "Authorization",
        "value": "Bearer {{access-token}}",
        "type": "text"
      },
      {
        "key": "Content-Type",
        "name": "Content-Type",
        "value": "application/json",
        "type": "text"
      }
    ],
    "body": {
      "mode": "raw",
      "raw": "{\n  \"callback\": {\n    \"url\": \"https://www.example.com/callback\",\n    \"method\": \"post\"\n  },\n  \"query\": {\n    \"module\": \"Contacts\",\n    \"fields\": [\n      \"Last_Name\",\n      \"Owner\",\n      \"Owner.last_name\",\n      \"Account_Name.Account_Name\",\n      \"Account_Name.Phone\",\n      \"Lead_Source\",\n      \"Created_Time\"\n    ],\n    \"criteria\": {\n      \"group_operator\": \"or\",\n      \"group\": [\n        {\n          \"api_name\": \"Lead_Source\",\n          \"comparator\": \"equal\",\n          \"value\": \"Advertisement\"\n        },\n        {\n          \"api_name\": \"Owner.last_name\",\n          \"comparator\": \"equal\",\n          \"value\": \"Boyle\"\n        },\n        {\n          \"api_name\": \"Account_Name.Phone\",\n          \"comparator\": \"contains\",\n          \"value\": \"5\"\n        }\n      ]\n    },\n    \"page\": 1\n  }\n}"
    },
    "url": {
      "raw": "{{api-domain}}/crm/bulk/v2/read",
      "host": [
        "{{api-domain}}"
      ],
      "path": [
        "crm",
        "bulk",
        "v2",
        "read"
      ]
    },
    "description": "To create a bulk read job to export records."
  },
  "response": [
    {
      "name": "SUCCESS RESPONSE",
      "originalRequest": {
        "method": "POST",
        "header": [
          {
            "warning": "This is a duplicate header and will be overridden by the Authorization header generated by Postman.",
            "key": "Authorization",
            "value": "Bearer {{access-token}}",
            "type": "text"
          },
          {
            "key": "Content-Type",
            "name": "Content-Type",
            "value": "application/json",
            "type": "text"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"callback\": {\n    \"url\": \"https://www.example.com/callback\",\n    \"method\": \"post\"\n  },\n  \"query\": {\n    \"module\": \"Contacts\",\n    \"fields\": [\n      \"Last_Name\",\n      \"Owner\",\n      \"Owner.last_name\",\n      \"Account_Name.Account_Name\",\n      \"Account_Name.Phone\",\n      \"Lead_Source\",\n      \"Created_Time\"\n    ],\n    \"criteria\": {\n      \"group_operator\": \"or\",\n      \"group\": [\n        {\n          \"api_name\": \"Lead_Source\",\n          \"comparator\": \"equal\",\n          \"value\": \"Advertisement\"\n        },\n        {\n          \"api_name\": \"Owner.last_name\",\n          \"comparator\": \"equal\",\n          \"value\": \"Boyle\"\n        },\n        {\n          \"api_name\": \"Account_Name.Phone\",\n          \"comparator\": \"contains\",\n          \"value\": \"5\"\n        }\n      ]\n    },\n    \"page\": 1\n  }\n}"
        },
        "url": {
          "raw": "{{api-domain}}/crm/bulk/v2/read",
          "host": [
            "{{api-domain}}"
          ],
          "path": [
            "crm",
            "bulk",
            "v2",
            "read"
          ]
        }
      },
      "status": "Created",
      "code": 201,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Server",
          "value": "ZGS"
        },
        {
          "key": "Date",
          "value": "Wed, 12 May 2021 06:54:24 GMT"
        },
        {
          "key": "Content-Type",
          "value": "application/json"
        },
        {
          "key": "Content-Length",
          "value": "282"
        },
        {
          "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-12T07:15:06+00:00"
        },
        {
          "key": "Strict-Transport-Security",
          "value": "max-age=15768000"
        }
      ],
      "cookie": [
      ],
      "body": "{\n    \"data\": [\n        {\n            \"status\": \"success\",\n            \"code\": \"ADDED_SUCCESSFULLY\",\n            \"message\": \"Added successfully.\",\n            \"details\": {\n                \"id\": \"738964000002152095\",\n                \"operation\": \"read\",\n                \"state\": \"ADDED\",\n                \"created_by\": {\n                    \"id\": \"738964000000291009\",\n                    \"name\": \"Patricia Boyle\"\n                },\n                \"created_time\": \"2021-05-12T06:54:24+00:00\"\n            }\n        }\n    ],\n    \"info\": {}\n}"
    },
    {
      "name": "MEDIA_TYPE_SUPPORTED",
      "originalRequest": {
        "method": "POST",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{access-token}}",
            "type": "text"
          },
          {
            "key": "Content-Type",
            "name": "Content-Type",
            "value": "application/json",
            "type": "text",
            "disabled": true
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"callback\": {\n    \"url\": \"https://www.example.com/callback\",\n    \"method\": \"post\"\n  },\n  \"query\": {\n    \"module\": \"Contacts\",\n    \"fields\": [\n      \"Last_Name\",\n      \"Owner\",\n      \"Owner.last_name\",\n      \"Account_Name.Account_Name\",\n      \"Account_Name.Phone\",\n      \"Lead_Source\",\n      \"Created_Time\"\n    ],\n    \"criteria\": {\n      \"group_operator\": \"or\",\n      \"group\": [\n        {\n          \"api_name\": \"Lead_Source\",\n          \"comparator\": \"equal\",\n          \"value\": \"Advertisement\"\n        },\n        {\n          \"api_name\": \"Owner.last_name\",\n          \"comparator\": \"equal\",\n          \"value\": \"Boyle\"\n        },\n        {\n          \"api_name\": \"Account_Name.Phone\",\n          \"comparator\": \"contains\",\n          \"value\": \"5\"\n        }\n      ]\n    },\n    \"page\": 1\n  }\n}"
        },
        "url": {
          "raw": "{{api-domain}}/crm/bulk/v2/read",
          "host": [
            "{{api-domain}}"
          ],
          "path": [
            "crm",
            "bulk",
            "v2",
            "read"
          ]
        }
      },
      "status": "Unsupported Media Type",
      "code": 415,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Server",
          "value": "ZGS"
        },
        {
          "key": "Date",
          "value": "Wed, 12 May 2021 06:55:32 GMT"
        },
        {
          "key": "Content-Type",
          "value": "application/json"
        },
        {
          "key": "Content-Length",
          "value": "124"
        },
        {
          "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-12T07:15:06+00:00"
        }
      ],
      "cookie": [
      ],
      "body": "{\n    \"status\": \"error\",\n    \"code\": \"MEDIA_TYPE_NOT_SUPPORTED\",\n    \"message\": \"Media type is not supported.\",\n    \"details\": [\n        \"application/json\"\n    ]\n}"
    },
    {
      "name": "INVALID_URL_PATTERN",
      "originalRequest": {
        "method": "POST",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{access-token}}",
            "type": "text"
          },
          {
            "key": "Content-Type",
            "name": "Content-Type",
            "value": "application/json",
            "type": "text",
            "disabled": true
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"callback\": {\n    \"url\": \"https://www.example.com/callback\",\n    \"method\": \"post\"\n  },\n  \"query\": {\n    \"module\": \"Contacts\",\n    \"fields\": [\n      \"Last_Name\",\n      \"Owner\",\n      \"Owner.last_name\",\n      \"Account_Name.Account_Name\",\n      \"Account_Name.Phone\",\n      \"Lead_Source\",\n      \"Created_Time\"\n    ],\n    \"criteria\": {\n      \"group_operator\": \"or\",\n      \"group\": [\n        {\n          \"api_name\": \"Lead_Source\",\n          \"comparator\": \"equal\",\n          \"value\": \"Advertisement\"\n        },\n        {\n          \"api_name\": \"Owner.last_name\",\n          \"comparator\": \"equal\",\n          \"value\": \"Boyle\"\n        },\n        {\n          \"api_name\": \"Account_Name.Phone\",\n          \"comparator\": \"contains\",\n          \"value\": \"5\"\n        }\n      ]\n    },\n    \"page\": 1\n  }\n}"
        },
        "url": {
          "raw": "{{api-domain}}/crm/bulk/v2/rea",
          "host": [
            "{{api-domain}}"
          ],
          "path": [
            "crm",
            "bulk",
            "v2",
            "rea"
          ]
        }
      },
      "status": "Not Found",
      "code": 404,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Server",
          "value": "ZGS"
        },
        {
          "key": "Date",
          "value": "Wed, 12 May 2021 06:56:01 GMT"
        },
        {
          "key": "Content-Type",
          "value": "application/json;charset=utf-8"
        },
        {
          "key": "Content-Length",
          "value": "131"
        },
        {
          "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_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": [
          {
            "key": "Authorization",
            "value": "Bearer {{access-token}}",
            "type": "text"
          },
          {
            "key": "Content-Type",
            "name": "Content-Type",
            "value": "application/json",
            "type": "text",
            "disabled": true
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"callback\": {\n    \"url\": \"https://www.example.com/callback\",\n    \"method\": \"post\"\n  },\n  \"query\": {\n    \"module\": \"Contacts\",\n    \"fields\": [\n      \"Last_Name\",\n      \"Owner\",\n      \"Owner.last_name\",\n      \"Account_Name.Account_Name\",\n      \"Account_Name.Phone\",\n      \"Lead_Source\",\n      \"Created_Time\"\n    ],\n    \"criteria\": {\n      \"group_operator\": \"or\",\n      \"group\": [\n        {\n          \"api_name\": \"Lead_Source\",\n          \"comparator\": \"equal\",\n          \"value\": \"Advertisement\"\n        },\n        {\n          \"api_name\": \"Owner.last_name\",\n          \"comparator\": \"equal\",\n          \"value\": \"Boyle\"\n        },\n        {\n          \"api_name\": \"Account_Name.Phone\",\n          \"comparator\": \"contains\",\n          \"value\": \"5\"\n        }\n      ]\n    },\n    \"page\": 1\n  }\n}"
        },
        "url": {
          "raw": "{{api-domain}}/crm/bulk/v2/read",
          "host": [
            "{{api-domain}}"
          ],
          "path": [
            "crm",
            "bulk",
            "v2",
            "read"
          ]
        }
      },
      "status": "Bad Request",
      "code": 400,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Server",
          "value": "ZGS"
        },
        {
          "key": "Date",
          "value": "Wed, 12 May 2021 06:56:19 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}"
    }
  ]
}