Request

Response

    PATCH

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

    Updates a given aggregate’s name, description, privacy, aggregate extensions or aggregate tip version only if the checksum provided is the same as the current aggregate checksum.

    If the checksum provided is different, an error is returned.

    If successful the updated aggregate will be returned. If the includeTipVersionDetails query parameter is set to true, the aggregate tip version will always be returned if it exists.

    Resource Information

    Method and URI
    PATCH
    https://developer.api.autodesk.com/construction/aggregate/v1/projects/:projectId/folders/:folderUrn/aggregates/:aggregateId
    Authentication Context
    user context required
    Required OAuth Scopes
    data:write
    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.
    aggregateId
    string: UUID
    The aggregate ID.

    Request

    Query Parameters

    includeTipVersionDetails
    boolean
    Include the aggregate version matching the tipVersion number.

    Request

    Body Structure

    Expand all
    checksum*
    string
    The checksum for this aggregate.
    isPrivate
    boolean
    The privacy flag for this instance.
    name
    string
    The display name for this instance.

    Min length: 1. Max length: 64.

    description
    string
    The description for this instance.

    Min length: 1. Max length: 1024.

    newAggregateVersion
    object
    A new aggregate version.
    include*
    array: object
    An array of lineage filters to include within the aggregate version. See Aggregate Filters.

    Min items: 1. Max items: 50.

    indexFilter
    object
    An object-selection query to apply as part of this lineage filter. See Aggregate Filters.
    filter*
    object
    The query condition that defines which model objects the filter selects: a Condition object. The condition syntax is documented in Aggregate Filters.
    viewParts
    array: object
    A set of Document View Names.

    Min items: 1. Max items: 1000.

    urn*
    string
    The Document URN for this lineage.

    Min length: 1. Max length: 256.

    viewParts
    array: string
    The set of view part identifiers.

    Min items: 1. Max items: 1000.

    objectSets
    array: object
    The set of lineage objects associated with this aggregate.

    Min items: 1. Max items: 1000.

    urn*
    string
    The Document URN for this lineage.

    Min length: 1. Max length: 256.

    objects*
    array: int
    The set of object identifiers.

    Min items: 1. Max items: 10000.

    id
    string: UUID
    The ID for this lineage filter.
    disabled
    boolean
    The disabled flag for this lineage filter.
    exclude
    array: object
    An array of lineage filters to exclude from the aggregate version. See Aggregate Filters.

    Max items: 50.

    indexFilter
    object
    An object-selection query to apply as part of this lineage filter. See Aggregate Filters.
    filter*
    object
    The query condition that defines which model objects the filter selects: a Condition object. The condition syntax is documented in Aggregate Filters.
    viewParts
    array: object
    A set of Document View Names.

    Min items: 1. Max items: 1000.

    urn*
    string
    The Document URN for this lineage.

    Min length: 1. Max length: 256.

    viewParts
    array: string
    The set of view part identifiers.

    Min items: 1. Max items: 1000.

    objectSets
    array: object
    The set of lineage objects associated with this aggregate.

    Min items: 1. Max items: 1000.

    urn*
    string
    The Document URN for this lineage.

    Min length: 1. Max length: 256.

    objects*
    array: int
    The set of object identifiers.

    Min items: 1. Max items: 10000.

    id
    string: UUID
    The ID for this lineage filter.
    disabled
    boolean
    The disabled flag for this lineage filter.
    version
    int
    The version to create must be contiguous, and the request will be rejected if the version already exists.
    updateAggregateExtensions
    array: object
    A set of extension data. See Aggregate Extensions.
    typeId*
    string
    A unique versioned type identifier for this extension type definition.
    extension
    object
    The value of an extension that matches the defining schema.
    * 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.
    409
    Conflict
    Indicates that the request could not be carried out because of a conflict on the server.
    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
    tipVersionDetails
    object
    An aggregate version.
    include
    array: object
    An array of lineage filters to include within the aggregate version. See Aggregate Filters.

    Min items: 1. Max items: 50.

    indexFilter
    object
    An object-selection query to apply as part of this lineage filter. See Aggregate Filters.
    filter
    object
    The query condition that defines which model objects the filter selects: a Condition object. The condition syntax is documented in Aggregate Filters.
    viewParts
    array: object
    A set of Document View Names.

    Min items: 1. Max items: 1000.

    urn
    string
    The Document URN for this lineage.

    Min length: 1. Max length: 256.

    viewParts
    array: string
    The set of view part identifiers.

    Min items: 1. Max items: 1000.

    objectSets
    array: object
    The set of lineage objects associated with this aggregate.

    Min items: 1. Max items: 1000.

    urn
    string
    The Document URN for this lineage.

    Min length: 1. Max length: 256.

    objects
    array: int
    The set of object identifiers.

    Min items: 1. Max items: 10000.

    id
    string: UUID
    The ID for this lineage filter.
    disabled
    boolean
    The disabled flag for this lineage filter.
    exclude
    array: object
    An array of lineage filters to exclude from the aggregate version. See Aggregate Filters.

    Max items: 50.

    indexFilter
    object
    An object-selection query to apply as part of this lineage filter. See Aggregate Filters.
    filter
    object
    The query condition that defines which model objects the filter selects: a Condition object. The condition syntax is documented in Aggregate Filters.
    viewParts
    array: object
    A set of Document View Names.

    Min items: 1. Max items: 1000.

    urn
    string
    The Document URN for this lineage.

    Min length: 1. Max length: 256.

    viewParts
    array: string
    The set of view part identifiers.

    Min items: 1. Max items: 1000.

    objectSets
    array: object
    The set of lineage objects associated with this aggregate.

    Min items: 1. Max items: 1000.

    urn
    string
    The Document URN for this lineage.

    Min length: 1. Max length: 256.

    objects
    array: int
    The set of object identifiers.

    Min items: 1. Max items: 10000.

    id
    string: UUID
    The ID for this lineage filter.
    disabled
    boolean
    The disabled flag for this lineage filter.
    version
    int
    The version number of this aggregate.
    aggregateId
    string: UUID
    The aggregate ID.
    projectId
    string: UUID
    The project ID.
    folderUrn
    string
    The folder containing the aggregate version. See Aggregate Folders.
    createdBy
    string
    The identity associated with the creator of this version.
    createdAt
    datetime: ISO 8601
    The date and time this version was created.
    projectId
    string: UUID
    The project ID.
    folderUrn
    string
    The folder associated with this instance. See Aggregate Folders.
    createdBy
    string
    The identity associated with the creator of this instance.
    createdAt
    datetime: ISO 8601
    The date and time this instance was created.
    isDeleted
    boolean
    true if this instance has been deleted.
    updatedBy
    string
    The identity associated with the last modification to this instance.
    updatedAt
    datetime: ISO 8601
    The date and time this instance was last updated.
    checksum
    string
    The checksum for this instance.
    tipVersion
    int
    The latest version number of this aggregate.
    id
    string: UUID
    The ID for this instance.
    isPrivate
    boolean
    The privacy flag for this instance.
    name
    string
    The display name for this instance.

    Min length: 1. Max length: 64.

    description
    string
    The description for this instance.

    Min length: 1. Max length: 1024.

    extensions
    array: object
    A set of extension data. See Aggregate Extensions.
    typeId
    string
    A unique versioned type identifier for this extension type definition.
    extension
    object
    The value of an extension that matches the defining schema.

    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.

    Response

    Body Structure (409)

    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/fe5509ba-05c9-2445-b95a-7a3d8b547265' \
         -X PATCH \
         -H 'Authorization: Bearer <token>' \
         -H 'Content-Type: application/json' \
         -d '{
               "checksum": "2e0f5be686ca7a2263174a524d0fa814",
               "name": "Aggregate name",
               "description": "Aggregate description",
               "newAggregateVersion": {
                 "include": [
                   {
                     "indexFilter": {
                       "filter": {}
                     },
                     "viewParts": [
                       {
                         "urn": "urn:adsk.wipprod:dm.lineage:jvMF7mrHR7OwG_DToKsJUA"
                       }
                     ],
                     "objectSets": [
                       {
                         "urn": "urn:adsk.wipprod:dm.lineage:jvMF7mrHR7OwG_DToKsJUA",
                         "objects": [
                           212
                         ]
                       }
                     ]
                   }
                 ]
               },
               "updateAggregateExtensions": [
                 {
                   "typeId": "construction.modelCoordination:view-1.0.0",
                   "extension": {
                     "clashToleranceMeters": "0.1",
                     "coordinationSpaceId": "3f6c36eb-c98c-4d63-b50a-d36df605d1b3"
                   }
                 }
               ]
             }'
    
    Show More

    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/fe5509ba-05c9-2445-b95a-7a3d8b547265?includeTipVersionDetails=True' \
         -X PATCH \
         -H 'Authorization: Bearer <token>' \
         -H 'Content-Type: application/json' \
         -d '{
               "checksum": "2e0f5be686ca7a2263174a524d0fa814",
               "name": "Aggregate name",
               "description": "Aggregate description",
               "newAggregateVersion": {
                 "include": [
                   {
                     "indexFilter": {
                       "filter": {}
                     },
                     "viewParts": [
                       {
                         "urn": "urn:adsk.wipprod:dm.lineage:jvMF7mrHR7OwG_DToKsJUA"
                       }
                     ],
                     "objectSets": [
                       {
                         "urn": "urn:adsk.wipprod:dm.lineage:jvMF7mrHR7OwG_DToKsJUA",
                         "objects": [
                           212
                         ]
                       }
                     ]
                   }
                 ]
               },
               "updateAggregateExtensions": [
                 {
                   "typeId": "construction.modelCoordination:view-1.0.0",
                   "extension": {
                     "clashToleranceMeters": "0.1",
                     "coordinationSpaceId": "3f6c36eb-c98c-4d63-b50a-d36df605d1b3"
                   }
                 }
               ]
             }'
    
    Show More

    Response (200)

    {
      "tipVersionDetails": {},
      "projectId": "84e30b95-f6d2-3553-391f-f2747a3017e0",
      "folderUrn": "urn:adsk.wipprod:fs.folder:co.WI8roO18TU2Cl3P9y64z4w",
      "createdBy": "PD23PXGV8V3V",
      "createdAt": "2015-10-21T16:31:31.000Z",
      "isDeleted": false,
      "updatedBy": "PD23PXGV8V3V",
      "updatedAt": "2015-10-21T16:30:20.000Z",
      "checksum": "2e0f5be686ca7a2263174a524d0fa814",
      "tipVersion": "6",
      "id": "74b70bb8-8802-a1fd-f201-890375a60c8f",
      "isPrivate": false,
      "name": "Aggregate name",
      "description": "Aggregate description",
      "extensions": [
        {
          "typeId": "construction.modelCoordination:view-1.0.0",
          "extension": {
            "clashToleranceMeters": "0.1",
            "coordinationSpaceId": "3f6c36eb-c98c-4d63-b50a-d36df605d1b3"
          }
        }
      ]
    }
    
    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

    Response (409)

    {
      "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