Hubs listing

The purpose of this API to get the list of hubs under a user.

Request URL:https://learn.zoho.com/learn/api/v1/hubs
OAuth Scope:ZohoLearn.network.READ
Request Method:GET

Success response

Copied{
  "scopes": [
      {
          "id": "10000000001",
          "name": "Hub 1",
          "url": "hub-1",
          "soid": "10000000002",
          "isDefault": "true"
      },
      {
          "id": "20000000001",
          "name": "Hub 2",
          "url": "hub-2",
          "soid": "10000000002",
          "isDefault": "false"
      }
  ]
}

Failure response

Copied{
    "result":"failure",
    "reason":"Exception while getting hubs list"
}