Request

Response

    POST

    projects/:projectId/folders

    Creates an aggregate folder within a given project.

    The response contains information about the created aggregate folder.

    Resource Information

    Method and URI
    POST
    https://developer.api.autodesk.com/construction/aggregate/v1/projects/:projectId/folders
    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.

    Request

    Body Structure

    urn*
    string
    The URN of the aggregate folder. See Aggregate Folders.

    Min length: 1. Max length: 256.

    * 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)

    urn
    string
    The URN of the aggregate folder. See Aggregate Folders.

    Min length: 1. Max length: 256.

    createdBy
    string
    The identity that created this instance.
    createdAt
    datetime: ISO 8601
    The date and time this instance was created.
    isDeleted
    boolean
    true if this instance has been deleted.
    modifiedBy
    string
    The identity that modified this instance.
    modifiedAt
    datetime: ISO 8601
    The date and time this instance was modified.

    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' \
         -X POST \
         -H 'Authorization: Bearer <token>' \
         -H 'Content-Type: application/json' \
         -d '{
               "urn": "urn:adsk.wipprod:fs.folder:co.WI8roO18TU2Cl3P9y64z4w"
             }'
    

    Response (200)

    {
      "urn": "urn:adsk.wipprod:fs.folder:co.WI8roO18TU2Cl3P9y64z4w",
      "createdBy": "PD23PXGV8V3V",
      "createdAt": "2015-10-21T16:31:31.000Z",
      "isDeleted": false,
      "modifiedBy": "PD23PXGV8V3V"
    }
    

    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