Request

Response

    GET

    projects/:projectId/folders/:folderUrn/aggregates/:aggregateId/snapshots/:snapshotId

    Retrieves a given aggregate snapshot based on its ID, aggregate ID, folder URN and project ID.

    The response contains the snapshot’s status. When the status is Successful, the response also contains content: a signed, pre-authorized URL (content.url) pointing to the compiled content in storage. The compiled content is NOT returned in this response body. To download it, send an HTTP GET directly to content.url, passing the headers listed in content.headers. The URL is temporary and stops working at content.validUntil; if it has expired, call this endpoint again to obtain a fresh URL.

    When the status is Failed, the response contains error instead, with a type, title and detail.

    Snapshot creation is asynchronous: a new snapshot is Pending, then Processing. Poll this endpoint until the status is Successful or Failed. A snapshot with status NotInstanced was created without compiled content and will never return a content URL.

    The response also contains the snapshot’s checksum. To update the snapshot, pass this value as the checksum in the body of Update Aggregate Snapshot; the update is rejected with 409 Conflict if the snapshot has changed since it was read.

    Resource Information

    Method and URI
    GET
    https://developer.api.autodesk.com/construction/aggregate/v1/projects/:projectId/folders/:folderUrn/aggregates/:aggregateId/snapshots/:snapshotId
    Authentication Context
    user context required
    Required OAuth Scopes
    data:read
    Data Format
    JSON

    Request

    Headers

    Authorization*
    string
    Must be Bearer <token>, where <token> is obtained via a three-legged OAuth flow.
    region
    string
    The region to which your request should be routed. If not set, the request is routed automatically but may incur a small latency increase.

    For the full list of supported regions, see the Regions page.

    The API continues to support x-ads-region for backward compatibility.

    * Required

    Request

    URI Parameters

    projectId
    string: UUID
    The GUID that uniquely identifies the project.
    folderUrn
    string
    The folder URN of the aggregate folder. See Aggregate Folders.
    aggregateId
    string: UUID
    The aggregate ID.
    snapshotId
    string: UUID
    The ID of the aggregate snapshot.

    Response

    HTTP Status Code Summary

    200
    OK
    Success
    400
    Bad Request
    The parameters of the requested operation are invalid.
    401
    Unauthorized
    The provided bearer token is not valid.
    403
    Forbidden
    The user or service represented by the bearer token does not have permission to perform this operation.
    404
    Not Found
    The requested resource could not be found.
    429
    Too Many Requests
    Rate limit exceeded. Wait some time before retrying. The Retry-After header might provide the amount of the time to wait.
    500
    Internal Server Error
    An unknown error occurred on the server.

    Response

    Body Structure (200)

    Expand all
    sourceVersions
    array: string
    The array of source file versions used to compile the aggregate version.

    Min items: 1. Max items: 1000.

    aggregateId
    string: UUID
    The aggregate ID.
    version
    int
    The aggregate version.
    status
    enum: string
    The creation status of the aggregate snapshot.

    Possible values: Pending, Processing, Successful, Failed, NotInstanced.

    includeIndex
    int
    The zero-based include section index used when instancing, if any. Omitted when all non-disabled include sections were instanced together. Maximum is 49 because aggregate versions allow at most 50 include sections (same maxItems limit as include on newAggregateVersion) and this index is zero-based.
    content
    object
    The location of the compiled content. Present only when status is Successful; null otherwise. Fetch content.url directly, with the headers in content.headers, to download the compiled content. The URL expires at content.validUntil.
    url
    string
    The signed URL to send an HTTP GET to, to download the compiled content.
    headers
    object
    The HTTP headers that must accompany the GET request to url.
    validUntil
    datetime: ISO 8601
    The time in UTC that the URL and headers will stop working.
    error
    object
    An optional error if the status is Failed.
    type
    string
    The error code.
    title
    string
    A short title for the error.
    detail
    string
    A more detailed, human readable description of the error, assuming that this message is not localized and is therefore EN-US. UI consumers can use the error.type value to provide a localized version of this error for presentation.
    errors
    array: object
    A set of specific validation errors that need to be fixed.
    field
    string
    The field that failed validation.
    title
    string
    A short title for the error.
    detail
    string
    A more detailed, human readable description of the error, assuming that this message is not localized and is therefore EN-US. UI consumers can use the error.type value to provide a localized version of this error for presentation.
    type
    string
    The error code.
    id
    string: UUID
    The ID for this snapshot.
    createdBy
    string
    The identity associated with the creator of this snapshot.
    createdAt
    datetime: ISO 8601
    The date and time this snapshot was created.
    updatedBy
    string
    The identity associated with the last modification to this snapshot.
    updatedAt
    datetime: ISO 8601
    The date and time this snapshot was last updated.
    checksum
    string
    An opaque string describing the current state of the object, used to prevent update collisions.
    name
    string
    The display name for this snapshot.

    Min length: 1. Max length: 128.

    description
    string
    The description for this snapshot.

    Min length: 1. Max length: 256.

    Response

    Body Structure (400)

    Expand all
    type
    string
    The error code.
    title
    string
    A short title for the error.
    detail
    string
    A more detailed, human readable description of the error, assuming that this message is not localized and is therefore EN-US. UI consumers can use the error.type value to provide a localized version of this error for presentation.
    errors
    array: object
    A set of specific validation errors that need to be fixed.
    field
    string
    The field that failed validation.
    title
    string
    A short title for the error.
    detail
    string
    A more detailed, human readable description of the error, assuming that this message is not localized and is therefore EN-US. UI consumers can use the error.type value to provide a localized version of this error for presentation.
    type
    string
    The error code.

    Example

    Request

    curl -v 'https://developer.api.autodesk.com/construction/aggregate/v1/projects/84e30b95-f6d2-3553-391f-f2747a3017e0/folders/urn%3aadsk.wipprod%3afs.folder%3aco.WI8roO18TU2Cl3P9y64z4w/aggregates/fe5509ba-05c9-2445-b95a-7a3d8b547265/snapshots/d31a9a11-e652-d054-8cbb-2ea97c480a6e' \
         -H 'Authorization: Bearer <token>'
    

    Response (200)

    {
      "sourceVersions": [
        "urn:adsk.wipprod:fs.file:vf.b909RzMKR4mhc3O7UBY_8g?version=2"
      ],
      "aggregateId": "fe5509ba-05c9-2445-b95a-7a3d8b547265",
      "version": 42,
      "status": "Successful",
      "includeIndex": "0",
      "content": {
        "url": "https://example.com/6f760056-db07-4239-ba4c-d9739ac50142/instance.json.gz?token=da39a3ee5e6b4b0d3255bfef95601890afd80709",
        "headers": {},
        "validUntil": "2015-10-21T16:29:19.000Z"
      },
      "error": {
        "type": "BadInput",
        "title": "One or more input values in the request were bad",
        "detail": "The following parameters are invalid: containerId",
        "errors": [
          {
            "field": "containerId",
            "title": "Invalid parameter",
            "detail": "The value 'testing' is not valid.",
            "type": "BadInput"
          }
        ]
      },
      "id": "74b70bb8-8802-a1fd-f201-890375a60c8f",
      "createdBy": "PD23PXGV8V3V",
      "createdAt": "2015-10-21T16:31:31.000Z",
      "updatedBy": "PD23PXGV8V3V",
      "checksum": "7215ee9c7d9dc229d2921a40e899ec5f",
      "name": "Aggregate snapshot name",
      "description": "Aggregate snapshot description"
    }
    
    Show More

    Response (400)

    {
      "type": "BadInput",
      "title": "One or more input values in the request were bad",
      "detail": "The following parameters are invalid: containerId",
      "errors": [
        {
          "field": "containerId",
          "title": "Invalid parameter",
          "detail": "The value 'testing' is not valid.",
          "type": "BadInput"
        }
      ]
    }
    
    Show More