/memberCategorySchema: Member Category Schema

URL:
https://[root]/portals/[portalID]/memberCategorySchema
Methods:
GET

Example usage

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

Use dark colors for code blocksCopy
1
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:

Use dark colors for code blocksCopy
1
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
Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{
  "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

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{
  "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

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{
  "memberCategorySchema": [
    {
      "title": "Location",
      "categories": [
        {
          "title": "Redlands, CA"
        },
        {
          "title": "Portland, OR",
        }
      ]
    },
    {
      "title": "Department",
      "categories": [
        {
          "title": "Software Products"
        },
        {
          "title": "Software Development"
        }
      ]
    }
  ]
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.