Request

Response

    CustomAttributeDefinitions
    GET

    projects/{projectId}/custom-attribute-definitions

    Retrieves a list of custom attribute definitions for a Forma project.

    If you need to retrieve custom attribute definitions scoped to a specific folder, use GET projects/{project_id}/folders/{folder_id}/custom-attribute-definitions instead.

    Note that this endpoint is not compatible with BIM 360 projects.

    Resource Information

    Method and URI
    GET
    https://developer.api.autodesk.com/construction/files/v1/projects/{projectId}/custom-attribute-definitions
    Authentication Context
    User context optional
    Required OAuth Scopes
    data:read
    Data Format
    JSON

    Request

    Headers

    Authorization*
    string
    Must be Bearer <token>, where <token> is a two-legged access token obtained via a Client Credentials Grant flow, or a three-legged access token obtained via an Authorization Code flow or a Secure Service Account (SSA) flow.

    The SSA flow is designed for headless server-to-server operations. While it functions like a two-legged flow (no user interaction), it is classified as three-legged because it preserves user context.

    x-user-id
    string
    The ID of a user on whose behalf your request is acting. Your app has access to all users specified by the administrator in the SaaS integrations UI. Provide this header value to identify the user to be affected by the request.

    You can use either the user’s Forma ID (id), or their Autodesk ID (autodeskId).

    Note that this header is required for a 2-legged authentication context.

    * Required

    Request

    URI Parameters

    projectId
    string: UUID
    The ID of the project.

    Use the Data Management API to retrieve the project ID. For more information, see the Retrieve a Project ID tutorial. You need to convert the project ID into a project ID for the Forma API by removing the “b." prefix. For example, a project ID of b.a4be0c34a-4ab7 translates to a project ID of a4be0c34a-4ab7.

    Request

    Query String Parameters

    limit
    int
    The maximum number of results per page. Possible values: 1- 100. Default value: 100. For example, to limit the response to two results per page, use limit=2.
    offset
    int
    The number of results to skip before starting to return data. For example, to skip the first 20 results, include offset=20 in the query string. For more details, see the JSON API Paging Help documentation.
    sort
    enum:string
    Sorts custom attribute definitions by name (results.name) or ID (results.id), in ascending (asc) or descending (desc) order.

    Possible values: id asc, id desc, name asc, name desc. Default: id asc.

    searchText
    string
    Filters results by the name of the custom attribute definition (results.name). Returns custom attribute definitions where the name contains the specified string (case-insensitive).

    Response

    HTTP Status Code Summary

    200
    OK
    Successfully retrieved a list of custom attribute definitions.
    400
    Bad Request
    The parameters of the requested operation are invalid. For example, an invalid sort value.
    401
    Unauthorized
    Invalid or missing authorization header. Verify the Bearer token and try again.
    403
    Forbidden
    The user is not authorized to perform this action.
    404
    Not Found
    The specified resource was not found.
    500
    Internal Server Error
    An unexpected error occurred on the server while processing the request.

    Response

    Body Structure (200)

    Expand all
    results
    array: object
    A list of custom attribute definitions.
    id
    int
    The unique numeric identifier of the custom attribute definition.
    name
    string
    The name of the custom attribute definition.

    Max length: 32

    type
    enum:string
    The type of custom attribute definition.

    Possible values:

    string: A single-line text field.

    array: A drop-down of selectable options.

    date: A date field.

    largeList: A drop-down that supports a large number of options.

    createdBy
    object
    Details about the user who created the custom attribute definition.
    id
    string
    The Autodesk ID of the user.
    name
    string
    The name of the user.
    updatedBy
    object
    Details about the user who last updated the custom attribute definition.
    id
    string
    The Autodesk ID of the user.
    name
    string
    The name of the user.
    createdAt
    datetime: ISO 8601
    The date and time the custom attribute definition was created, in ISO 8601 format. For example, 2024-03-05T01:17:47.301Z.
    updatedAt
    datetime: ISO 8601
    The date and time the custom attribute definition was last updated, in ISO 8601 format. For example, 2024-03-07T01:17:47.301Z.
    description
    string
    The description of the custom attribute definition. Returns null when no description has been provided.

    Max length: 255

    arrayOptions
    array: object
    The list of predefined values available for this drop-down custom attribute definition. Only present when type is array. Returns null for all other types.
    value
    string
    The value of the drop-down option, as stored and displayed.
    description
    string
    An optional description that provides additional context for the drop-down option value. Returns an empty string when no description has been provided.
    namingStandardIds
    array: string
    The IDs of the naming standards associated with this custom attribute definition. Returns an empty array when no naming standards are associated.
    pagination
    object
    Information about the paginated results.
    totalResults
    int
    The total number of custom attribute definitions.
    offset
    int
    The number of custom attribute definitions skipped before returning results.
    limit
    int
    The maximum number of custom attribute definitions returned per page.
    nextUrl
    string
    The URL for retrieving the next page of results. Returns an empty string when the current page is the last page.

    Example

    Successfully retrieved a list of custom attribute definitions.

    Request

    curl -v 'https://developer.api.autodesk.com/construction/files/v1/projects/c0337487-5b66-422b-a284-c273b424af54/custom-attribute-definitions?limit=100&sort=id asc&searchText=Revision' \
      -H 'Authorization: Bearer AuIPTf4KYLTYGVnOHQ0cuolwCW2a'
    

    Response

    {
      "results": [
        {
          "id": 278690,
          "name": "Revision",
          "type": "string",
          "description": null,
          "updatedAt": "2026-02-11T08:30:46.701Z",
          "namingStandardIds": [],
          "createdBy": {
            "id": "HWUBNU689CRH",
            "name": "John Smith"
          },
          "updatedBy": {
            "id": "PQR789STU012",
            "name": "Jane Doe"
          },
          "createdAt": "2021-03-10T09:15:29.611Z"
        },
        {
          "id": 278684,
          "name": "Volume/System",
          "type": "array",
          "description": null,
          "updatedAt": "2021-05-19T06:29:52.638Z",
          "namingStandardIds": [
            "151",
            "252"
          ],
          "createdBy": {
            "id": "HWUBNU689CRH",
            "name": "John Smith"
          },
          "updatedBy": {
            "id": "PQR789STU012",
            "name": "Jane Doe"
          },
          "createdAt": "2021-03-10T09:15:29.611Z",
          "arrayOptions": [
            {
              "value": "Mechanical",
              "description": "Mechanical systems"
            },
            {
              "value": "Electrical",
              "description": "Electrical systems"
            }
          ]
        }
      ],
      "pagination": {
        "totalResults": 50,
        "offset": 0,
        "limit": 3,
        "nextUrl": "https://developer.api.autodesk.com/construction/files/v1/projects/e495f579-52ca-4eb5-9d0f-b38192072687/custom-attribute-definitions?offset=10&limit=10&sort=id asc"
      }
    }
    
    Show More