Request

Response

    POST

    projects/:projectId/folders/:folderUrn/aggregates:search-lineages

    Finds the aggregate versions in the specified folder whose filters reference any of the given model lineage URNs. Use this to discover which aggregates (for example, which search sets) depend on a given model: pass the lineage URNs of the models you are interested in, and the response lists every aggregate version whose filter includes one of them.

    A lineage URN identifies a model independently of version — all versions of a file share the same lineage URN. Provide between 1 and 50 lineage URNs. One result is returned for each (aggregate version, lineage URN) pair, so a version whose filter references several of the given lineages appears once per lineage.

    The response contains a list of matching aggregate versions, restricted by the number specified by the limit property. If there are more results than can be displayed at once, you can provide the offset property in a separate call to retrieve additional results.

    Resource Information

    Method and URI
    POST
    https://developer.api.autodesk.com/construction/aggregate/v1/projects/:projectId/folders/:folderUrn/aggregates:search-lineages
    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.
    Content-Type*
    string
    Must be application/json
    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. The alias project-level can be used to retrieve project aggregates. See Aggregate Folders.

    Request

    Query Parameters

    offset
    int
    offset parameter for pagination support.
    limit
    int
    limit parameter for pagination support. The value will be capped to the maximum value supported by the service.

    Request

    Body Structure

    array: string*
    array: string
    The aggregate lineage URNs to search for.

    Min items: 1. Max items: 50.

    * Required

    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.
    415
    Unsupported Media Type
    The Content-Type header must be application/json.
    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
    pagination
    object
    Paging information associated with a paging response.
    offset
    number
    Provides the offset value used for this page.
    limit
    number
    Provides the limit value used for this page.
    nextUrl
    string
    Absolute URL for fetching the next page. If this is not provided, the end of the list is reached.
    aggregates
    array: object
    An array of individual lineage search results.

    Max items: 20.

    projectId
    string: UUID
    The project ID.
    folderUrn
    string
    The folder containing this aggregate.
    aggregateId
    string: UUID
    The aggregate ID.
    version
    int
    The aggregate version.
    lineageUrn
    string
    The URN of the lineage.

    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 #1 (no query parameters)

    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:search-lineages' \
         -X POST \
         -H 'Authorization: Bearer <token>' \
         -H 'Content-Type: application/json' \
         -d '[
               "urn:adsk.wipprod:dm.lineage:jvMF7mrHR7OwG_DToKsJUA"
             ]'
    

    Example #2 (with all query parameters)

    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:search-lineages?offset=122&limit=170' \
         -X POST \
         -H 'Authorization: Bearer <token>' \
         -H 'Content-Type: application/json' \
         -d '[
               "urn:adsk.wipprod:dm.lineage:jvMF7mrHR7OwG_DToKsJUA"
             ]'
    

    Response (200)

    {
      "pagination": {
        "offset": 122,
        "limit": 170,
        "nextUrl": "https://developer.api.autodesk.com/construction/aggregate/nextPage"
      },
      "aggregates": [
        {
          "projectId": "84e30b95-f6d2-3553-391f-f2747a3017e0",
          "folderUrn": "urn:adsk.wipprod:fs.folder:co.WI8roO18TU2Cl3P9y64z4w",
          "aggregateId": "fe5509ba-05c9-2445-b95a-7a3d8b547265",
          "version": 42,
          "lineageUrn": "urn:adsk.wipprod:dm.lineage:jvMF7mrHR7OwG_DToKsJUA"
        }
      ]
    }
    
    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