Request

Response

    View Thumbnail URL

    This topic provides instructions on how to retrieve the following:

    • URL of Thumbnail.
    • Display URL of Thumbnail.

    As a prerequisite for completing the current topic, you need to complete the following tasks:

    1. Retrieve Hubs.
    2. Retrieve Projects.
    3. Retrieve Folders.
    4. Retrieve Items.

    You will use the following query in this task:

    TypeOperationDescription
    Query componentVersion Retrieves an object representing a version of a component.

    Step 1 - Get the URL of the Thumbnail

    The componentVersion query returns a ComponentVersion object, which represents the tip version of the component. You extract the URL of the thumbnail by mining the Thumbnail object.

    1. In Manufacturing Data Model Explorer, enter the following query in the Query pane:

      Query

      query GetComponentVersion($componentVersionId: ID!) {
          componentVersion(componentVersionId: $componentVersionId) {
              id
              name
              partNumber
              partDescription
              designItemVersion {
                  id
                  name
                  extensionType
              }
              thumbnail {
                  status
                  signedUrl
              }
              component {
                  id
                  name
              }
          }
      }
      
      Show More
    2. In the Query Variables Pane, enter the value of the componentVersionId. To know how to obtain the componentVersionId (tipRootComponentVersion), refer to Retrieve Items.

      Query Variables

      {
      "componentVersionId": "Y29tcH5WQVZNUW1sYmxrZDBtaXJwU0NYMHJ0X0wyQ34zMlBTQ2daMXJLY2V3SHlCN1dkbEZyX2FnYX53RnlaU1BGSmNQY2l3NDdFeTBIemJX"
      }
      
    3. Click Play. The field signedUrl is the URL of a Thumbnail.

      Response

      {
      "data": {
          "componentVersion": {
              "id": "Y29tcH5WQVZNUW1sYmxrZDBtaXJwU0NYMHJ0X0wyQ34zMlBTQ2daMXJLY2V3SHlCN1dkbEZyX2FnYX53RnlaU1BGSmNQY2l3NDdFeTBIemJX",
              "name": "3D_Arm_Scan",
              "partNumber": "3D_Arm_Scan",
              "partDescription": "",
              "designItemVersion": {
                  "id": "urn:adsk.wipstg:fs.file:vf.2T9wT3rFSZW0SJkfo139PQ?version=1",
                  "name": "3D_Arm_Scan",
                  "extensionType": "versions:autodesk.fusion360:Design"
              },
              "thumbnail": {
                  "status": "SUCCESS",
                  "signedUrl": "https://cdn-stg.derivative.autodesk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1dkbEZyX2FnYQ",
                  "name": "3D_Arm_Scan"
              }
          }
      }
      }
      
      Show More

    Note:

    • The status mentioned in the response is the result of the successful execution of the requests. If the requests are not successful, we recommend that you retry executing the queries to get a successful response. For more information about other statuses, see ThumbnailStatusEnum.
    • The generated URL is valid for six hours after it is generated.

    Step 2 - View the Thumbnail

    To view the thumbnail, perform the following actions:

    1. Start your preferred web browser.
    2. Browse to the URL of the image that you want to view. In this case, the value of signedUrl.

    After performing the given steps, you should be able to see screen like the following image.

    ../../../_images/largeurl.png