Request

Response

    Queries

    item

    query

    Retrieves an object representing an item.

    An item refers to a file or sub-folder that exists within a folder.

    Template for Query:

    query GetItem($hubId: ID!, $itemId: ID!) {
      item(hubId: $hubId, itemId: $itemId) {
        # Item Fields
      }
    }
    

    Template for Query Variables:

    {
      "hubId" : "<SOME-ID-TYPE-SCALAR-VALUE>",
      "itemId" : "<SOME-ID-TYPE-SCALAR-VALUE>"
    }
    
    Was this section useful?


    Arguments

    hubId*
    ID! non-null
    The ID of the Hub that contains the item.
    itemId*
    ID! non-null
    The ID of the item to retrieve.
    * Required

    Possible Returns

    Value TypeDescription
    Item Represents an Item. An item refers to a file or sub-folder that exists within a folder.
    Was this section useful?


    Examples

    Example 1

    Retrieves an item by ID along with the hub, project and folder it belongs to.

    Query:

    query GetItemById($hubId: ID!, $itemId: ID!) {
     item(hubId: $hubId, itemId: $itemId) {
       id
       name
       createdOn
       lastModifiedOn
       project {
         id
         name
       }
       ... on DesignItem {
         id
         name
         rootComponent {
           id
           name
           tipVersion {
             id
             name
           }
         }
       }
       ... on DrawingItem {
         id
         name
         tipVersion {
           id
           name
         }
       }
     }
     }
    
    Show More

    Query Variables:

    {
     "hubId": "urn:adsk.ace:beta.scope:e7c7f5a9-a88a-40b4-85f6-ba1454def997",
     "itemId": "urn:adsk.wipstg:dm.lineage:2T9wT3rFSZW0SJkfo139PQ"
    }
    

    Response:

    {
       "data": {
           "item": {
               "id": "urn:adsk.wipstg:dm.lineage:2T9wT3rFSZW0SJkfo139PQ",
               "name": "3D_Arm_Scan",
               "createdOn": "2024-02-06T12:04:05.000Z",
               "lastModifiedOn": "2024-09-09T11:10:55.000Z",
               "project": {
                   "id": "urn:adsk.workspace:beta.project:e7cc7e8d-5246-4800-b07e-97eee2a0aa07",
                   "name": "DOCS_STG"
               },
               "rootComponent": {
                   "id": "Y29tcH5WQVZNUW1sYmxrZDBtaXJwU0NYMHJ0X0wyQ34zMlBTQ2daMXJLY2V3SHlCN1dkbEZyX2FnYQ",
                   "name": "3D_Arm_Scan",
                   "tipVersion": {
                       "id": "Y29tcH5WQVZNUW1sYmxrZDBtaXJwU0NYMHJ0X0wyQ34zMlBTQ2daMXJLY2V3SHlCN1dkbEZyX2FnYX4wSFZNa3lRZVlrd3p0TFZheUF6S0dp",
                       "name": "3D_Arm_Scan"
                   }
               }
           }
       }
    }
    
    Show More

    Example 2

    Retrieves configured design item details and lists its versions.

    Query:

    query item($hubId: ID!, $itemId: ID!) {
       item(hubId: $hubId, itemId: $itemId) {
           ... on ConfiguredDesignItem {
               id
               name
               extensionType
               versions {
                   results {
                       id
                       name
                       project {
                           id
                           name
                       }
                       hub {
                           id
                           __typename
                       }
                       versionNumber
                       __typename
                       mimeType
                       extensionType
                       configurationTable {
                           id
                           name
                           rows {
                               id
                               name
                           }
                       }
                   }
               }
           }
       }
     }
    
    Show More

    Query Variables:

    {
     "hubId": "urn:adsk.ace:beta.scope:e7c7f5a9-a88a-40b4-85f6-ba1454def997",
     "itemId": "urn:adsk.wipstg:dm.lineage:LquRHj_ZQXuwSov5uvpVUw"
    }
    

    Response:

    {
       "data": {
           "item": {
               "id": "urn:adsk.wipstg:dm.lineage:LquRHj_ZQXuwSov5uvpVUw",
               "name": "CD_CYL",
               "extensionType": "f3d",
               "versions": {
                   "results": [
                       {
                           "id": "urn:adsk.wipstg:fs.file:vf.LquRHj_ZQXuwSov5uvpVUw?version=4",
                           "name": "CD_CYL",
                           "project": {
                               "id": "urn:adsk.workspace:beta.project:579dec98-17eb-45f3-b4df-ef2beb4adff8",
                               "name": "Default Project"
                           },
                           "hub": {
                               "id": "urn:adsk.ace:beta.scope:e7c7f5a9-a88a-40b4-85f6-ba1454def997",
                               "__typename": "Hub"
                           },
                           "versionNumber": 4,
                           "__typename": "ConfiguredDesignItemVersion",
                           "mimeType": "application/vnd.autodesk.fusion360",
                           "extensionType": "versions:autodesk.fusion360:Design",
                           "configurationTable": {
                               "id": "1",
                               "name": "Configurations",
                               "rows": [
                                   {
                                       "id": "58c3765c-9b17-4c03-acc8-4873ffca9adb",
                                       "name": "Configuration41_80"
                                   },
                                   {
                                       "id": "0b9e2251-6509-46e5-b8ed-71b591d1cdbc",
                                       "name": "Configuration40_80"
                                   },
                                   {
                                       "id": "4325bb58-97af-4948-8992-2c149e89e2bf",
                                       "name": "Configuration42_80"
                                   }
                               ]
                           }
                       },
                       {
                           "id": "urn:adsk.wipstg:fs.file:vf.LquRHj_ZQXuwSov5uvpVUw?version=3",
                           "name": "CD_CYL",
                           "project": {
                               "id": "urn:adsk.workspace:beta.project:579dec98-17eb-45f3-b4df-ef2beb4adff8",
                               "name": "Default Project"
                           },
                           "hub": {
                               "id": "urn:adsk.ace:beta.scope:e7c7f5a9-a88a-40b4-85f6-ba1454def997",
                               "__typename": "Hub"
                           },
                           "versionNumber": 3,
                           "__typename": "ConfiguredDesignItemVersion",
                           "mimeType": "application/vnd.autodesk.fusion360",
                           "extensionType": "versions:autodesk.fusion360:Design",
                           "configurationTable": {
                               "id": "1",
                               "name": "Configurations",
                               "rows": [
                                   {
                                       "id": "ca0574f2-4465-46bb-b6a4-ad34f8e460e8",
                                       "name": "Configuration_27_20"
                                   },
                                   {
                                       "id": "387c1f32-476b-4975-beb8-2b6ac39017ab",
                                       "name": "Configuration_25_20"
                                   },
                                   {
                                       "id": "0ee8f8c3-5f0b-49a1-992d-6ed01a89c620",
                                       "name": "Configuration_26_20"
                                   }
                               ]
                           }
                       },
                       {
                           "id": "urn:adsk.wipstg:fs.file:vf.LquRHj_ZQXuwSov5uvpVUw?version=2",
                           "name": "CD_CYL",
                           "project": {
                               "id": "urn:adsk.workspace:beta.project:579dec98-17eb-45f3-b4df-ef2beb4adff8",
                               "name": "Default Project"
                           },
                           "hub": {
                               "id": "urn:adsk.ace:beta.scope:e7c7f5a9-a88a-40b4-85f6-ba1454def997",
                               "__typename": "Hub"
                           },
                           "versionNumber": 2,
                           "__typename": "ConfiguredDesignItemVersion",
                           "mimeType": "application/vnd.autodesk.fusion360",
                           "extensionType": "versions:autodesk.fusion360:Design",
                           "configurationTable": {
                               "id": "1",
                               "name": "Configurations",
                               "rows": [
                                   {
                                       "id": "5ae335b8-70d3-4120-96ea-063954508275",
                                       "name": "Configuration_10_10"
                                   },
                                   {
                                       "id": "a353c129-4bb7-4b9f-9dd7-a180754bf82a",
                                       "name": "Configuration_15_15"
                                   },
                                   {
                                       "id": "e03c45ea-027d-4888-8ba1-01064c527f98",
                                       "name": "Configuration_20_20"
                                   }
                               ]
                           }
                       },
                       {
                           "id": "urn:adsk.wipstg:fs.file:vf.LquRHj_ZQXuwSov5uvpVUw?version=1",
                           "name": "CD_CYL",
                           "project": {
                               "id": "urn:adsk.workspace:beta.project:579dec98-17eb-45f3-b4df-ef2beb4adff8",
                               "name": "Default Project"
                           },
                           "hub": {
                               "id": "urn:adsk.ace:beta.scope:e7c7f5a9-a88a-40b4-85f6-ba1454def997",
                               "__typename": "Hub"
                           },
                           "versionNumber": 1,
                           "__typename": "ConfiguredDesignItemVersion",
                           "mimeType": "application/vnd.autodesk.fusion360",
                           "extensionType": "versions:autodesk.fusion360:Design",
                           "configurationTable": {
                               "id": "1",
                               "name": "Configurations",
                               "rows": [
                                   {
                                       "id": "5ae335b8-70d3-4120-96ea-063954508275",
                                       "name": "Configuration_10_10"
                                   }
                               ]
                           }
                       }
                   ]
               }
           }
       }
    }
    
    Show More

    Example 3

    Retrieves configured design item details of an item.

    Query:

    query item($hubId: ID!, $itemId: ID!) {
       item(hubId: $hubId, itemId: $itemId) {
           ... on ConfiguredDesignItem {
               id
               name
               tipConfigurationTable {
                   id
                   name
                   rows {
                       id
                       name
                   }
               }
               tipVersion {
                   id
                   name
                   project {
                       id
                       name
                   }
                   versionNumber
                   __typename
                   mimeType
                   extensionType
                   configurationTable {
                       id
                       name
                       rows {
                           id
                           name
                       }
                   }
               }
           }
       }
     }
    
    Show More

    Query Variables:

    {
     "hubId": "urn:adsk.ace:beta.scope:e7c7f5a9-a88a-40b4-85f6-ba1454def997",
     "itemId": "urn:adsk.wipstg:dm.lineage:LquRHj_ZQXuwSov5uvpVUw"
    }
    

    Response:

    {
       "data": {
           "item": {
               "id": "urn:adsk.wipstg:dm.lineage:LquRHj_ZQXuwSov5uvpVUw",
               "name": "CD_CYL",
               "tipConfigurationTable": {
                   "id": "1",
                   "name": "Configurations",
                   "rows": [
                       {
                           "id": "387c1f32-476b-4975-beb8-2b6ac39017ab",
                           "name": "Configuration_25_20"
                       },
                       {
                           "id": "4325bb58-97af-4948-8992-2c149e89e2bf",
                           "name": "Configuration42_80"
                       },
                       {
                           "id": "0ee8f8c3-5f0b-49a1-992d-6ed01a89c620",
                           "name": "Configuration_26_20"
                       },
                       {
                           "id": "e03c45ea-027d-4888-8ba1-01064c527f98",
                           "name": "Configuration_20_20"
                       },
                       {
                           "id": "0b9e2251-6509-46e5-b8ed-71b591d1cdbc",
                           "name": "Configuration40_80"
                       },
                       {
                           "id": "5ae335b8-70d3-4120-96ea-063954508275",
                           "name": "Configuration_10_10"
                       },
                       {
                           "id": "ca0574f2-4465-46bb-b6a4-ad34f8e460e8",
                           "name": "Configuration_27_20"
                       },
                       {
                           "id": "58c3765c-9b17-4c03-acc8-4873ffca9adb",
                           "name": "Configuration41_80"
                       },
                       {
                           "id": "a353c129-4bb7-4b9f-9dd7-a180754bf82a",
                           "name": "Configuration_15_15"
                       }
                   ]
               },
               "tipVersion": {
                   "id": "urn:adsk.wipstg:fs.file:vf.LquRHj_ZQXuwSov5uvpVUw?version=4",
                   "name": "CD_CYL",
                   "project": {
                       "id": "urn:adsk.workspace:beta.project:579dec98-17eb-45f3-b4df-ef2beb4adff8",
                       "name": "Default Project"
                   },
                   "versionNumber": 4,
                   "__typename": "ConfiguredDesignItemVersion",
                   "mimeType": "application/vnd.autodesk.fusion360",
                   "extensionType": "versions:autodesk.fusion360:Design",
                   "configurationTable": {
                       "id": "1",
                       "name": "Configurations",
                       "rows": [
                           {
                               "id": "387c1f32-476b-4975-beb8-2b6ac39017ab",
                               "name": "Configuration_25_20"
                           },
                           {
                               "id": "4325bb58-97af-4948-8992-2c149e89e2bf",
                               "name": "Configuration42_80"
                           },
                           {
                               "id": "0ee8f8c3-5f0b-49a1-992d-6ed01a89c620",
                               "name": "Configuration_26_20"
                           },
                           {
                               "id": "e03c45ea-027d-4888-8ba1-01064c527f98",
                               "name": "Configuration_20_20"
                           },
                           {
                               "id": "0b9e2251-6509-46e5-b8ed-71b591d1cdbc",
                               "name": "Configuration40_80"
                           },
                           {
                               "id": "5ae335b8-70d3-4120-96ea-063954508275",
                               "name": "Configuration_10_10"
                           },
                           {
                               "id": "ca0574f2-4465-46bb-b6a4-ad34f8e460e8",
                               "name": "Configuration_27_20"
                           },
                           {
                               "id": "58c3765c-9b17-4c03-acc8-4873ffca9adb",
                               "name": "Configuration41_80"
                           },
                           {
                               "id": "a353c129-4bb7-4b9f-9dd7-a180754bf82a",
                               "name": "Configuration_15_15"
                           }
                       ]
                   }
               }
           }
       }
    }
    
    Show More
    Was this section useful?