Back to Collection Items
integer li_rc
oleobject loo_Http
integer li_Success
oleobject loo_SbResponseBody
oleobject loo_JResp
integer li_RespStatusCode
integer li_Global_search_supported
integer li_Kanban_view
integer li_Deletable
string ls_Description
integer li_Creatable
integer li_Filter_status
integer li_Inventory_template_supported
string ls_Modified_time
string ls_Plural_label
integer li_Presence_sub_menu
integer li_Triggers_supported
string ls_Id
integer li_IsBlueprintSupported
string ls_Sort_by
string ls_Sort_order
integer li_Per_page
integer li_Visibility
integer li_Convertable
integer li_Editable
integer li_EmailTemplate_support
integer li_Filter_supported
string ls_Display_field
integer li_Kanban_view_supported
integer li_Show_as_tab
string ls_Web_link
integer li_Sequence_number
string ls_Singular_label
integer li_Viewable
integer li_Api_supported
string ls_Api_name
integer li_Quick_create
string ls_Name
string ls_Id
string ls_Generated_type
integer li_Feeds_required
integer li_Scoring_supported
integer li_Webform_supported
string ls_Module_name
integer li_Business_card_field_limit
string ls_Display_value
string ls_Shared_type
string ls_Group_operator
string ls_System_name
string ls_Shared_details
string ls_Custom_viewSort_by
integer li_Offline
integer li_Default
integer li_System_defined
string ls_Custom_viewName
string ls_Custom_viewId
string ls_Category
string ls_Favorite
string ls_Custom_viewSort_order
integer j
integer li_Count_j
string ls_StrVal
string ls_Name
string ls_Comparator
string ls_Field
string ls_Value
integer i
integer li_Count_i
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
loo_Http = create oleobject
li_rc = loo_Http.ConnectToNewObject("Chilkat_9_5_0.Http")
if li_rc < 0 then
destroy loo_Http
MessageBox("Error","Connecting to COM object failed")
return
end if
// Adds the "Authorization: Bearer <access_token>" header.
loo_Http.AuthToken = "<access_token>"
loo_SbResponseBody = create oleobject
li_rc = loo_SbResponseBody.ConnectToNewObject("Chilkat_9_5_0.StringBuilder")
li_Success = loo_Http.QuickGetSb("https://domain.com/crm/v2/settings/modules/Leads",loo_SbResponseBody)
if li_Success = 0 then
Write-Debug loo_Http.LastErrorText
destroy loo_Http
destroy loo_SbResponseBody
return
end if
loo_JResp = create oleobject
li_rc = loo_JResp.ConnectToNewObject("Chilkat_9_5_0.JsonObject")
loo_JResp.LoadSb(loo_SbResponseBody)
loo_JResp.EmitCompact = 0
Write-Debug "Response Body:"
Write-Debug loo_JResp.Emit()
li_RespStatusCode = loo_Http.LastStatus
Write-Debug "Response Status Code = " + string(li_RespStatusCode)
if li_RespStatusCode >= 400 then
Write-Debug "Response Header:"
Write-Debug loo_Http.LastHeader
Write-Debug "Failed."
destroy loo_Http
destroy loo_SbResponseBody
destroy loo_JResp
return
end if
// Sample JSON response:
// (Sample code for parsing the JSON response is shown below)
// {
// "modules": [
// {
// "global_search_supported": true,
// "kanban_view": false,
// "deletable": true,
// "description": null,
// "creatable": true,
// "filter_status": true,
// "inventory_template_supported": false,
// "modified_time": "2021-05-06T06:41:05+00:00",
// "plural_label": "Leads",
// "presence_sub_menu": true,
// "triggers_supported": true,
// "id": "738964000000000125",
// "isBlueprintSupported": true,
// "related_list_properties": {
// "sort_by": null,
// "fields": [
// "Full_Name",
// "Company",
// "Email",
// "Lead_Source",
// "Lead_Status",
// "Phone"
// ],
// "sort_order": null
// },
// "per_page": 10,
// "$properties": [
// "$converted",
// "$approved",
// "$approval_state",
// "$state",
// "$converted_detail",
// "$currency_symbol",
// "$review",
// "$review_process",
// "$approval",
// "$in_merge",
// "$process_flow",
// "$orchestration",
// "$stop_processing",
// "$data_source_details"
// ],
// "visibility": 1,
// "convertable": true,
// "editable": true,
// "emailTemplate_support": true,
// "profiles": [
// {
// "name": "Administrator",
// "id": "738964000000015972"
// },
// {
// "name": "Standard",
// "id": "738964000000015975"
// },
// {
// "name": "Sample",
// "id": "738964000001348001"
// }
// ],
// "filter_supported": true,
// "display_field": "Full_Name",
// "search_layout_fields": [
// "Owner",
// "Company",
// "Email",
// "Full_Name",
// "Phone",
// "Lead_Source"
// ],
// "kanban_view_supported": true,
// "show_as_tab": true,
// "web_link": null,
// "sequence_number": 2,
// "singular_label": "Lead",
// "viewable": true,
// "api_supported": true,
// "api_name": "Leads",
// "quick_create": true,
// "modified_by": {
// "name": "Patricia Boyle",
// "id": "738964000000291009"
// },
// "generated_type": "default",
// "feeds_required": false,
// "scoring_supported": true,
// "webform_supported": true,
// "arguments": [
// ],
// "module_name": "Leads",
// "business_card_field_limit": 5,
// "custom_view": {
// "display_value": "My Leads",
// "shared_type": "all",
// "criteria": {
// "group_operator": "and",
// "group": [
// {
// "comparator": "equal",
// "field": "Owner",
// "value": "${CURRENTUSER}"
// },
// {
// "comparator": "equal",
// "field": "$converted",
// "value": false
// }
// ]
// },
// "system_name": "MYVIEWS",
// "shared_details": null,
// "sort_by": null,
// "offline": true,
// "default": true,
// "system_defined": true,
// "name": "My Leads",
// "id": "738964000000091563",
// "category": "shared_with_me",
// "fields": [
// "Full_Name",
// "Company",
// "Email",
// "Phone",
// "Lead_Source"
// ],
// "favorite": null,
// "sort_order": null
// },
// "parent_module": {}
// }
// ]
// }
// Sample code for parsing the JSON response...
// Use this online tool to generate parsing code from sample JSON: Generate JSON Parsing Code
i = 0
li_Count_i = loo_JResp.SizeOfArray("modules")
do while i < li_Count_i
loo_JResp.I = i
li_Global_search_supported = loo_JResp.BoolOf("modules[i].global_search_supported")
li_Kanban_view = loo_JResp.BoolOf("modules[i].kanban_view")
li_Deletable = loo_JResp.BoolOf("modules[i].deletable")
ls_Description = loo_JResp.StringOf("modules[i].description")
li_Creatable = loo_JResp.BoolOf("modules[i].creatable")
li_Filter_status = loo_JResp.BoolOf("modules[i].filter_status")
li_Inventory_template_supported = loo_JResp.BoolOf("modules[i].inventory_template_supported")
ls_Modified_time = loo_JResp.StringOf("modules[i].modified_time")
ls_Plural_label = loo_JResp.StringOf("modules[i].plural_label")
li_Presence_sub_menu = loo_JResp.BoolOf("modules[i].presence_sub_menu")
li_Triggers_supported = loo_JResp.BoolOf("modules[i].triggers_supported")
ls_Id = loo_JResp.StringOf("modules[i].id")
li_IsBlueprintSupported = loo_JResp.BoolOf("modules[i].isBlueprintSupported")
ls_Sort_by = loo_JResp.StringOf("modules[i].related_list_properties.sort_by")
ls_Sort_order = loo_JResp.StringOf("modules[i].related_list_properties.sort_order")
li_Per_page = loo_JResp.IntOf("modules[i].per_page")
li_Visibility = loo_JResp.IntOf("modules[i].visibility")
li_Convertable = loo_JResp.BoolOf("modules[i].convertable")
li_Editable = loo_JResp.BoolOf("modules[i].editable")
li_EmailTemplate_support = loo_JResp.BoolOf("modules[i].emailTemplate_support")
li_Filter_supported = loo_JResp.BoolOf("modules[i].filter_supported")
ls_Display_field = loo_JResp.StringOf("modules[i].display_field")
li_Kanban_view_supported = loo_JResp.BoolOf("modules[i].kanban_view_supported")
li_Show_as_tab = loo_JResp.BoolOf("modules[i].show_as_tab")
ls_Web_link = loo_JResp.StringOf("modules[i].web_link")
li_Sequence_number = loo_JResp.IntOf("modules[i].sequence_number")
ls_Singular_label = loo_JResp.StringOf("modules[i].singular_label")
li_Viewable = loo_JResp.BoolOf("modules[i].viewable")
li_Api_supported = loo_JResp.BoolOf("modules[i].api_supported")
ls_Api_name = loo_JResp.StringOf("modules[i].api_name")
li_Quick_create = loo_JResp.BoolOf("modules[i].quick_create")
ls_Name = loo_JResp.StringOf("modules[i].modified_by.name")
ls_Id = loo_JResp.StringOf("modules[i].modified_by.id")
ls_Generated_type = loo_JResp.StringOf("modules[i].generated_type")
li_Feeds_required = loo_JResp.BoolOf("modules[i].feeds_required")
li_Scoring_supported = loo_JResp.BoolOf("modules[i].scoring_supported")
li_Webform_supported = loo_JResp.BoolOf("modules[i].webform_supported")
ls_Module_name = loo_JResp.StringOf("modules[i].module_name")
li_Business_card_field_limit = loo_JResp.IntOf("modules[i].business_card_field_limit")
ls_Display_value = loo_JResp.StringOf("modules[i].custom_view.display_value")
ls_Shared_type = loo_JResp.StringOf("modules[i].custom_view.shared_type")
ls_Group_operator = loo_JResp.StringOf("modules[i].custom_view.criteria.group_operator")
ls_System_name = loo_JResp.StringOf("modules[i].custom_view.system_name")
ls_Shared_details = loo_JResp.StringOf("modules[i].custom_view.shared_details")
ls_Custom_viewSort_by = loo_JResp.StringOf("modules[i].custom_view.sort_by")
li_Offline = loo_JResp.BoolOf("modules[i].custom_view.offline")
li_Default = loo_JResp.BoolOf("modules[i].custom_view.default")
li_System_defined = loo_JResp.BoolOf("modules[i].custom_view.system_defined")
ls_Custom_viewName = loo_JResp.StringOf("modules[i].custom_view.name")
ls_Custom_viewId = loo_JResp.StringOf("modules[i].custom_view.id")
ls_Category = loo_JResp.StringOf("modules[i].custom_view.category")
ls_Favorite = loo_JResp.StringOf("modules[i].custom_view.favorite")
ls_Custom_viewSort_order = loo_JResp.StringOf("modules[i].custom_view.sort_order")
j = 0
li_Count_j = loo_JResp.SizeOfArray("modules[i].related_list_properties.fields")
do while j < li_Count_j
loo_JResp.J = j
ls_StrVal = loo_JResp.StringOf("modules[i].related_list_properties.fields[j]")
j = j + 1
loop
j = 0
li_Count_j = loo_JResp.SizeOfArray("modules[i].$properties")
do while j < li_Count_j
loo_JResp.J = j
ls_StrVal = loo_JResp.StringOf("modules[i].$properties[j]")
j = j + 1
loop
j = 0
li_Count_j = loo_JResp.SizeOfArray("modules[i].profiles")
do while j < li_Count_j
loo_JResp.J = j
ls_Name = loo_JResp.StringOf("modules[i].profiles[j].name")
ls_Id = loo_JResp.StringOf("modules[i].profiles[j].id")
j = j + 1
loop
j = 0
li_Count_j = loo_JResp.SizeOfArray("modules[i].search_layout_fields")
do while j < li_Count_j
loo_JResp.J = j
ls_StrVal = loo_JResp.StringOf("modules[i].search_layout_fields[j]")
j = j + 1
loop
j = 0
li_Count_j = loo_JResp.SizeOfArray("modules[i].arguments")
do while j < li_Count_j
loo_JResp.J = j
j = j + 1
loop
j = 0
li_Count_j = loo_JResp.SizeOfArray("modules[i].custom_view.criteria.group")
do while j < li_Count_j
loo_JResp.J = j
ls_Comparator = loo_JResp.StringOf("modules[i].custom_view.criteria.group[j].comparator")
ls_Field = loo_JResp.StringOf("modules[i].custom_view.criteria.group[j].field")
ls_Value = loo_JResp.StringOf("modules[i].custom_view.criteria.group[j].value")
j = j + 1
loop
j = 0
li_Count_j = loo_JResp.SizeOfArray("modules[i].custom_view.fields")
do while j < li_Count_j
loo_JResp.J = j
ls_StrVal = loo_JResp.StringOf("modules[i].custom_view.fields[j]")
j = j + 1
loop
i = i + 1
loop
destroy loo_Http
destroy loo_SbResponseBody
destroy loo_JResp
Curl Command
curl -X GET
-H "Authorization: Bearer <access_token>"
https://domain.com/crm/v2/settings/modules/Leads
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/settings/modules/Leads",
"host": [
"{{api-domain}}"
],
"path": [
"crm",
"v2",
"settings",
"modules",
"Leads"
]
},
"description": "To get the metadata of the Leads Module."
},
"response": [
{
"name": "SUCCESS RESPONSE",
"originalRequest": {
"method": "GET",
"header": [
],
"url": {
"raw": "{{api-domain}}/crm/v2/settings/modules/Leads",
"host": [
"{{api-domain}}"
],
"path": [
"crm",
"v2",
"settings",
"modules",
"Leads"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "ZGS"
},
{
"key": "Date",
"value": "Tue, 11 May 2021 12:22:04 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-11T12:57:36+00:00"
},
{
"key": "clientVersion",
"value": "4023320"
},
{
"key": "clientsubVersion",
"value": "4d8b6ee4f7d1d284c930a4e807480c5c"
},
{
"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 \"modules\": [\n {\n \"global_search_supported\": true,\n \"kanban_view\": false,\n \"deletable\": true,\n \"description\": null,\n \"creatable\": true,\n \"filter_status\": true,\n \"inventory_template_supported\": false,\n \"modified_time\": \"2021-05-06T06:41:05+00:00\",\n \"plural_label\": \"Leads\",\n \"presence_sub_menu\": true,\n \"triggers_supported\": true,\n \"id\": \"738964000000000125\",\n \"isBlueprintSupported\": true,\n \"related_list_properties\": {\n \"sort_by\": null,\n \"fields\": [\n \"Full_Name\",\n \"Company\",\n \"Email\",\n \"Lead_Source\",\n \"Lead_Status\",\n \"Phone\"\n ],\n \"sort_order\": null\n },\n \"per_page\": 10,\n \"$properties\": [\n \"$converted\",\n \"$approved\",\n \"$approval_state\",\n \"$state\",\n \"$converted_detail\",\n \"$currency_symbol\",\n \"$review\",\n \"$review_process\",\n \"$approval\",\n \"$in_merge\",\n \"$process_flow\",\n \"$orchestration\",\n \"$stop_processing\",\n \"$data_source_details\"\n ],\n \"visibility\": 1,\n \"convertable\": true,\n \"editable\": true,\n \"emailTemplate_support\": true,\n \"profiles\": [\n {\n \"name\": \"Administrator\",\n \"id\": \"738964000000015972\"\n },\n {\n \"name\": \"Standard\",\n \"id\": \"738964000000015975\"\n },\n {\n \"name\": \"Sample\",\n \"id\": \"738964000001348001\"\n }\n ],\n \"filter_supported\": true,\n \"display_field\": \"Full_Name\",\n \"search_layout_fields\": [\n \"Owner\",\n \"Company\",\n \"Email\",\n \"Full_Name\",\n \"Phone\",\n \"Lead_Source\"\n ],\n \"kanban_view_supported\": true,\n \"show_as_tab\": true,\n \"web_link\": null,\n \"sequence_number\": 2,\n \"singular_label\": \"Lead\",\n \"viewable\": true,\n \"api_supported\": true,\n \"api_name\": \"Leads\",\n \"quick_create\": true,\n \"modified_by\": {\n \"name\": \"Patricia Boyle\",\n \"id\": \"738964000000291009\"\n },\n \"generated_type\": \"default\",\n \"feeds_required\": false,\n \"scoring_supported\": true,\n \"webform_supported\": true,\n \"arguments\": [],\n \"module_name\": \"Leads\",\n \"business_card_field_limit\": 5,\n \"custom_view\": {\n \"display_value\": \"My Leads\",\n \"shared_type\": \"all\",\n \"criteria\": {\n \"group_operator\": \"and\",\n \"group\": [\n {\n \"comparator\": \"equal\",\n \"field\": \"Owner\",\n \"value\": \"${CURRENTUSER}\"\n },\n {\n \"comparator\": \"equal\",\n \"field\": \"$converted\",\n \"value\": false\n }\n ]\n },\n \"system_name\": \"MYVIEWS\",\n \"shared_details\": null,\n \"sort_by\": null,\n \"offline\": true,\n \"default\": true,\n \"system_defined\": true,\n \"name\": \"My Leads\",\n \"id\": \"738964000000091563\",\n \"category\": \"shared_with_me\",\n \"fields\": [\n \"Full_Name\",\n \"Company\",\n \"Email\",\n \"Phone\",\n \"Lead_Source\"\n ],\n \"favorite\": null,\n \"sort_order\": null\n },\n \"parent_module\": {}\n }\n ]\n}"
},
{
"name": "INVALID_MODULE",
"originalRequest": {
"method": "GET",
"header": [
],
"url": {
"raw": "{{api-domain}}/crm/v2/settings/modules/Lead",
"host": [
"{{api-domain}}"
],
"path": [
"crm",
"v2",
"settings",
"modules",
"Lead"
]
}
},
"status": "Bad Request",
"code": 400,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "ZGS"
},
{
"key": "Date",
"value": "Tue, 11 May 2021 12:22: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-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-11T12:57:36+00:00"
},
{
"key": "clientVersion",
"value": "4023320"
},
{
"key": "clientsubVersion",
"value": "4d8b6ee4f7d1d284c930a4e807480c5c"
},
{
"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/settings/module/Leads",
"host": [
"{{api-domain}}"
],
"path": [
"crm",
"v2",
"settings",
"module",
"Leads"
]
}
},
"status": "Not Found",
"code": 404,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "ZGS"
},
{
"key": "Date",
"value": "Tue, 11 May 2021 12:22:42 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-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-11T12:57:36+00:00"
},
{
"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": "AUTHENTICATION_FAILURE",
"originalRequest": {
"method": "GET",
"header": [
],
"url": {
"raw": "{{api-domain}}/crm/v2/settings/modules/Leads",
"host": [
"{{api-domain}}"
],
"path": [
"crm",
"v2",
"settings",
"modules",
"Leads"
]
}
},
"status": "Unauthorized",
"code": 401,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "ZGS"
},
{
"key": "Date",
"value": "Tue, 11 May 2021 12:22:56 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": "INVALID_REQUEST_METHOD",
"originalRequest": {
"method": "COPY",
"header": [
],
"url": {
"raw": "{{api-domain}}/crm/v2/settings/modules/Leads",
"host": [
"{{api-domain}}"
],
"path": [
"crm",
"v2",
"settings",
"modules",
"Leads"
]
}
},
"status": "Bad Request",
"code": 400,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "ZGS"
},
{
"key": "Date",
"value": "Tue, 11 May 2021 12:23: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}"
},
{
"name": "OAUTH_SCOPE_MISMATCH",
"originalRequest": {
"method": "GET",
"header": [
],
"url": {
"raw": "{{api-domain}}/crm/v2/settings/modules/Leads",
"host": [
"{{api-domain}}"
],
"path": [
"crm",
"v2",
"settings",
"modules",
"Leads"
]
}
},
"status": "Unauthorized",
"code": 401,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "ZGS"
},
{
"key": "Date",
"value": "Thu, 13 May 2021 08:28:57 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}"
}
]
}