Skip To Content

/memberCategorySchema: Member Category Schema

  • URL:https://[root]/portals/[portalID]/memberCategorySchema

Example usage

The following is a sample ArcGIS Online request URL used to access the memberCategorySchema resource:

https://org.arcgis.com/sharing/rest/portals/0123456789ABCDEF/memberCategorySchema?f=pjson

The following is a sample ArcGIS Enterprise request URL used to access the memberCategorySchema resource:

https://machine.domain.com/webadaptor/sharing/rest/portals/0123456789ABCDEF/memberCategorySchema?f=pjson

Description

The memberCategorySchema resource returns the member category schema of an organization.

Request parameters

ParameterDetails
f

The response format. The default format is html.

Values: html | json | pjson

Response properties

PropertyDetails
memberCategorySchema

A JSON object that consists of a JSON array representing top level categories. Each category object has a title and a categories property. The categories property consists of an array of objects that represent the secondary and tertiary categories.

Example


{
  "memberCategorySchema": [
    {
      "title": "Office Location",
      "categories": [
        {
          "title": "USA",
          "categories": [
            {
              "title": "Maine"
            },
            {
              "title": "California",
              "categories": [
                {
                  "title": "Redlands"
                },
                {
                  "title": "San Diego"
                }
              ]
            }
          ]
        },
        {
          "title": "Europe",
          "categories": [
            {
              "title": "Zurich"
            },
            {
              "title": "Edinburgh"
            }
          ]
        }
      ]
    },
    {
      "title": "Department",
      "categories": [
        {
          "title": "Sales"
        },
        {
          "title": "Consulting"
        }
      ]
    }
  ]
}

JSON Response syntax


{
  "memberCategorySchema": [
    {
      "title": "<parent member category title1>",
      "categories": [
        {
          "title": "<child member category title>"
        },
        {
          "title": "<child member category title>",
        }
      ]
    },
    {
      "title": "<parent member category title2>",
      "categories": [
        {
          "title": "<child member category title>"
        },
        {
          "title": "<child member category title>"
        }
      ]
    }
  ]
}

JSON Response example


{
  "memberCategorySchema": [
    {
      "title": "Location",
      "categories": [
        {
          "title": "Redlands, CA"
        },
        {
          "title": "Portland, OR",
        }
      ]
    },
    {
      "title": "Department",
      "categories": [
        {
          "title": "Software Products"
        },
        {
          "title": "Software Development"
        }
      ]
    }
  ]
}