Metadata APIs

Returns the metadata for fields, layouts, and related lists for the specified module. It lists the entire fields available and related list for that module.

Module Metadata

Purpose

To get the metadata for a specific module. Specify the API name of the module, such as Leads, Accounts or Deals in your API request.

Request Details

Request URL

{api-domain}/crm/{version}/settings/modules/{module_api_name}

Header

Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52

Scope

scope=ZohoCRM.settings.ALL
(or)
scope=ZohoCRM.settings.modules.{operation_type}

Possible operation types

ALL - Full data access
READ - Get module data

Note

  • Refer to the key api_name in the JSON data while accessing the resource. Every module, field, and related lists will have an API name, which you can use in the third-party integrations. For example, if you want to access the Leads module, use “Leads" which is the api_name every time you access the resource. The Zoho Vertical Solutions generates an API name internally while creating a custom module, custom field, or related list label. Please note that you cannot alter the API Names for the default modules, fields, and related lists. You can change the API names only for custom modules, fields, and related lists.
  • The generated API name can contain only alphabets, numbers, and underscores. The API name should start with an alphabet and should not have two consecutive underscores or end with an underscore.
  • The response contains only those modules that the user's profile has permission to view.
  • New modules are added when a new file upload / image upload fields are added to a module.

Parameters

  • status 
    The status parameter can be used to retrieve specific types of modules. Valid values for status are user_hidden,system_hidden,scheduled_for_deletion,visible. eg:status=user_hidden,system_hidden can be used to retrieve all modules that are hidden to user and system. Status parameter is not mandatory.

Sample Request

Copiedcurl "https://zylkercorp.zohoplatform.com/crm/v6/settings/modules/Leads"
-X GET
-H "Authorization: Zoho-oauthtoken 100xx.d92d4xxxxxxxxxxxxx15f52"
Copiedresponse = invokeurl
[
	url: "https://zylkercorp.zohoplatform.com/crm/v6/settings/modules/Leads"
	type: GET
	connection:"crm_oauth_connection"
];
info response;

Response JSON Keys

  • global_search_supportedboolean

    Represents if the current module has global search support.
    Possible values- true: The current module has global search support.
    false: The current module does not have global search support.

  • deletableboolean

    Describes if the user can delete a record in the current module.
    Possible values- true: The user can delete a record in the current module.
    false: The user cannot delete a record in the current module.

  • descriptionstring

    Represents the description of the module, if any.

  • creatableboolean

    Represents if the user can create records in the current module.
    Possible values- true: The user can create records in the current module.
    false: The user cannot create records in the current module.

  • inventory_template_supportedboolean

    Represents the module supports inventory template. The value will be true only for Quotes, Invoices, Purchase Orders, and Sales Orders modules.
    Possible values- true: The current module supports inventory template.
    false: The current module does not support inventory template.

  • modified_timedate and time in ISO8601 format

    Represents the date and time of when the module properties were last modified.

  • plural_labelstring

    Represents the plural of the module name. Example: Leads.

  • singular_labelstring

    Represents the singular of the module name. Example: Lead.

  • presence_sub_menuboolean

    Represents if the module has a submenu. For instance, Tasks in Activities is a submenu.
    Possible values- true: The current module has a submenu.
    false: The current module does not have a submenu.

  • triggers_supportedboolean

    Represents if the module supports triggers from custom buttons, workflows, approval etc.
    Possible values- true: The current module supports triggers. For instance, Contacts, Accounts,and so on.
    false: The current module does not support triggers. For instance, Activities, Feeds, and so on.

  • idstring

    Represents the unique ID of the module. For instance, 4150868000000002173

  • visibilityinteger

    Represents the visibility of the module to the current user.

    • 2- The module is hidden in the UI, but is available in the API response
    • 1- The module is visible
    • 0- The module is hidden
    • -1 - The module is unavailable/hidden by the system itself due to the downgrading of the plan.
  • convertableboolean

    Describes if the user can convert the record into another type of record. For example: Convert Leads into Deals.
    Possible values- true: The user can convert the records in the current module into another type of record.
    false: The user cannot convert the records in the current module into another type of record.

  • viewableboolean

    Represents if the user can view the records in the current module.
    Possible values- true: The user can view the records in the current module.
    false: The user cannot view the records in the current module.

  • editableboolean

    Describes if the user can edit a record in the current module.
    Possible values- true: The user can edit a record in the current module.
    false: The user cannot edit a record in the current module.

  • emailTemplate_supportboolean

    Represents if the module supports the usage of the email templates.
    Possible values- true: The module has email template support.
    false: The module does not have email template support.

  • api_supportedboolean

    Describes if the current module is accessible via API.
    Possible values- true: The current module is accessible via API. For instance, Leads, Quotes.
    false: The current module is not accessible via API. For instance, Feeds, Documents, and so on.

  • profilesJSON array

    Each object in the array represents the details of the profile that has access to the module. Example: {
    "name": "Administrator",
    "id": "4150868000000026011"
    },

  • filter_supportedboolean

    Represents if the module supports custom filters besides the system-defined ones in a custom view.
    Possible values- true: The current module has custom-filter support.
    false: The current module does not have custom-filter support.

  • show_as_tabboolean

    Represents if the module is displayed as a tab in the Vertical Solutions UI.
    Possible values- true: The module is displayed as a tab in the UI. For instance, Contacts, Accounts, and so on.
    false: The module is not displayed as a tab in the UI. For instance, Tasks, linking modules, and so on.

  • web_linkstring

    Represents the web link of the module, if any. For instance, https://extensions.zoho.com/plugin/facebook

  • sequence_numberinteger

    Represents the position of the module in the Vertical Solution.

  • api_namestring

    Represents the API name of the module. Example: Leads.

  • quick_createboolean

    Represents if the module supports quick create.
    Possible values- true: The user can add records using quick create in the current module. For instance, Contacts, Accounts, and so on.
    false: The user cannot add records using quick create in the current module. For instance, Feeds, Forecasts, and so on.

  • modified_byJSON object

    Represents the name and ID of the user who last modified the module properties. For example: "modified_by": {
    "name": "Patricia Boyle",
    "id": "4150868000000225013"
    }

  • generated_typestring

    Represents how the module was created.
    Possible values- default: It is a default module. For instance, Contacts, Accounts, and so on.
    linking: It is a linking module.
    subform: It is a line item subform in one of the inventory modules.
    web: It is a web-tab widget.
    custom: It is a custom module.

  • feeds_requiredboolean

    Represents if feeds is enabled for the module.
    Possible values- true: Feeds is enabled for the current module.
    false: Feeds is not enabled for the current module.

  • scoring_supportedboolean

    Represents if the records of the module qualify for the scoring process, if there is one.
    Possible values- true: The current module qualifies for the scoring process.
    false: The current module does not qualify for the scoring process.

  • webform_supportedboolean

    Represents if the records in the module can be created via web forms.
    Possible values- true: The current module supports webforms.
    false: The current module does not support webforms.

  • argumentsJSON array

    Represents the parameters for the link used in Web-tab. Each object represents display name and the value of the argument. Example: "arguments": [
    {
    "name": "sample",
    "value": "users.city"
    }
    ]

  • module_namestring

    Represents the display name of the module.

  • business_card_field_limitinteger

    Represents the number of fields you can have in the business card details.
    Note: Business card details are displayed on the "Details View" page of a record. This is also the information shown when you hover over a lookup field.

  • custom_viewJSON object

    Represents the details of the custom views created for this module. If you pass the custom view ID, the response contains the details of that custom view. Otherwise, the system fetches the details of the default view in that module.

  • parent_moduleJSON object

    Represents the details of the parent module, if any. For instance, Activities is the parent module for Tasks, Calls, and Events.

  • statusstring

    Represents if the module is user_hidden,system_hidden,scheduled_for_deletion or visible .

  • sub_menu_availableboolean

    Represents if sub menu option is available for the module or not.

Possible Errors

  • INVALID_URL_PATTERNHTTP 404

    Please check if the URL trying to access is a correct one
    Resolution: The request URL specified is incorrect. Specify a valid request URL. Refer to request URL section above.

  • OAUTH_SCOPE_MISMATCHHTTP 401

    Unauthorized
    Resolution: Client does not have ZohoCRM.settings.modules.READ scope. Create a new client with valid scope. Refer to scope section above.

  • NO_PERMISSIONHTTP 403

    Permission denied to read
    Resolution: The user does not have permission to read records. Contact your system administrator.

  • INTERNAL_ERRORHTTP 500

    Internal Server Error
    Resolution: Unexpected and unhandled exception in the server. Contact support team.

  • INVALID_REQUEST_METHODHTTP 400

    The http request method type is not a valid one
    Resolution: You have specified an invalid HTTP method to access the API URL. Specify a valid request method. Refer to endpoints section above.

  • INVALID_MODULEHTTP 400

    The API name of the module is invalid.
    Resolution: The key resource_path_index in the response gives the index at which the error has occurred. The index 0 starts after the version number in the URL. So, if the index in the response is 2, it means the error is three places after the version number.

  • AUTHORIZATION_FAILEDHTTP 400

    User does not have sufficient privilege to read module details.
    Resolution: The user does not have the permission to retrieve module details. Contact your system administrator.

Sample Response

Copied{
    "modules": [
        {
            "global_search_supported": true,
            "activity_badge": "Enabled",
            "$field_states": [
                "convert_scheduler"
            ],
            "email_parser_supported": true,
            "inventory_template_supported": false,
            "plural_label": "Leads",
            "presence_sub_menu": true,
            "triggers_supported": true,
            "id": "431581000000000037",
            "per_page": 100,
            "$properties": [
                "$approval_state",
                "$state",
                "$wizard_connection_path",
                "$converted_detail",
                "$currency_symbol",
                "$review",
                "$review_process",
                "$approval",
                "$in_merge",
                "$process_flow",
                "$orchestration",
                "$pathfinder",
                "$stop_processing",
                "$data_source_details",
                "$editable",
                "$field_states",
                "$has_more",
                "$locked_for_me"
            ],
            "visibility": 1,
            "sub_menu_available": true,
            "emailTemplate_support": true,
            "profiles": [
                {
                    "name": "Administrator",
                    "id": "431581000000031157"
                },
                {
                    "name": "Standard",
                    "id": "431581000000031160"
                }
            ],
            "filter_supported": true,
            "$on_demand_properties": [
                "$blocked_reason",
                "$client_portal_invited"
            ],
            "kanban_view_supported": true,
            "web_link": null,
            "lookup_field_properties": {
                "fields": [
                    {
                        "sequence_number": 1,
                        "api_name": "Full_Name",
                        "id": "431581000000000871"
                    },
                    {
                        "sequence_number": 2,
                        "api_name": "Company",
                        "id": "431581000000000865"
                    },
                    {
                        "sequence_number": 3,
                        "api_name": "Email",
                        "id": "431581000000000875"
                    },
                    {
                        "sequence_number": 4,
                        "api_name": "Phone",
                        "id": "431581000000000877"
                    },
                    {
                        "sequence_number": 5,
                        "api_name": "Lead_Source",
                        "id": "431581000000000885"
                    },
                    {
                        "sequence_number": 6,
                        "api_name": "Owner",
                        "id": "431581000000000863"
                    }
                ]
            },
            "viewable": true,
            "api_name": "Leads",
            "module_name": "Leads",
            "custom_view": {
                "display_value": "All Leads",
                "created_time": null,
                "access_type": "public",
                "criteria": {
                    "comparator": "equal",
                    "field": {
                        "api_name": "$converted"
                    },
                    "value": false
                },
                "system_name": "ALLVIEWS",
                "sort_by": null,
                "created_by": null,
                "shared_to": null,
                "default": true,
                "modified_time": null,
                "name": "All Open Leads",
                "system_defined": true,
                "modified_by": null,
                "id": "431581000000029342",
                "fields": [
                    {
                        "api_name": "Full_Name",
                        "_pin": false,
                        "id": "431581000000000871"
                    },
                    {
                        "api_name": "Company",
                        "_pin": false,
                        "id": "431581000000000865"
                    },
                    {
                        "api_name": "Email",
                        "_pin": false,
                        "id": "431581000000000875"
                    },
                    {
                        "api_name": "Phone",
                        "_pin": false,
                        "id": "431581000000000877"
                    },
                    {
                        "api_name": "Lead_Source",
                        "_pin": false,
                        "id": "431581000000000885"
                    },
                    {
                        "api_name": "Owner",
                        "_pin": false,
                        "id": "431581000000000863"
                    }
                ],
                "category": "public_views",
                "last_accessed_time": "2023-06-25T13:09:37+05:30",
                "locked": false,
                "sort_order": null,
                "favorite": null
            },
            "parent_module": {},
            "status": "visible",
            "kanban_view": false,
            "deletable": true,
            "description": null,
            "creatable": true,
            "filter_status": true,
            "modified_time": "2023-06-28T00:50:57+05:30",
            "isBlueprintSupported": true,
            "related_list_properties": {
                "sort_by": null,
                "fields": [
                    "Full_Name",
                    "Company",
                    "Email",
                    "Lead_Source",
                    "Lead_Status",
                    "Phone"
                ],
                "sort_order": null
            },
            "convertable": true,
            "editable": true,
            "display_field": "Full_Name",
            "search_layout_fields": [
                "Owner",
                "Company",
                "Full_Name",
                "Email",
                "Phone",
                "Lead_Source"
            ],
            "show_as_tab": true,
            "sequence_number": 2,
            "singular_label": "Lead",
            "api_supported": true,
            "quick_create": true,
            "modified_by": {
                "name": "Patricia Boyle",
                "id": "431581000000258001"
            },
            "generated_type": "default",
            "feeds_required": false,
            "scoring_supported": true,
            "webform_supported": true,
            "arguments": [],
            "business_card_field_limit": 5,
            "territory": {
                "name": "All Territories",
                "id": "0",
                "subordinates": false
            }
        }
    ]
}