Queries
hubs
Retrieves all hubs that match the specified criteria.
A Hub is a container of projects, shared resources, and users with a common context.
Template for Query:
query GetHubs($filter: HubFilterInput, $pagination: PaginationInput) {
hubs(filter: $filter, pagination: $pagination) {
# Hubs Fields
}
}
Template for Query Variables:
{
"filter" : "<SOME-HUBFILTER-INPUT-TYPE-VALUE>",
"pagination" : "<SOME-PAGINATION-INPUT-TYPE-VALUE>"
}
Arguments
filter | Specifies how to filter a list of hubs. You can filter by name. |
pagination | Specifies how to split the response into multiple pages. |
Possible Returns
Value Type | Description |
---|---|
Hubs! non-null |
Contains a list of hubs returned in response to a query. A hub is a container of projects, shared resources, and users with a common context. |
Examples
Example 1
Retrieves all hubs you have access to.
Query:
query GetHubs {
hubs {
results {
id
name
}
}
}
Show More
Query Variables:
{
}
Response:
{
"data": {
"hubs": {
"results": [
{
"name": "Revit Nexus",
"id": "b.e4fbd315-2dc5-4026-8ca3-80f09d24ff42"
},
{
"name": "Golden Gate",
"id": "b.5c07c84c-bbd9-476e-8712-547f74c5b76b"
}
]
}
}
}
Show More
Example 2
Retrieves all hubs you have access to along with the alternativeRepresentations of each project and element in the result.
Query:
query GetHubs {
hubs {
results {
name
projects {
results {
alternativeRepresentations {
externalProjectId
}
name
folders {
results {
name
folders {
results {
name
folders {
results {
aecDesigns {
results {
name
elements {
results {
name
alternativeRepresentations {
externalElementId
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
Show More
Query Variables:
{
}
Response:
{
"data": {
"hubs": {
"results": [
{
"name": "Revit Nexus",
"projects": {
"results": [
{
"alternativeRepresentations": {
"externalProjectId": "b.7adbf9fd-debb-429c-bfe5-32a3c22c0695"
},
"name": "AEC Data STG",
"folders": {
"results": [
{
"name": "Project Files",
"folders": {
"results": [
{
"name": "Boyuan",
"folders": {
"results": [
{
"aecDesigns": {
"results": [
{
"name": "24_rac_basic_sample_project.rvt",
"elements": {
"results": [
{
"name": "Project Phase Information",
"alternativeRepresentations": {
"externalElementId": "e3e052f9-0156-11d5-9301-0000863f27ad-00000001"
}
}
]
}
}
]
}
}
]
}
}
]
}
}
]
}
}
]
}
}
]
}
}
}
Show More