Request

Response

    Find and Update a Data Request

    This tutorial shows how to find and update an existing data request stored by the Data Connector service. For this example, we’ll change the description of the data request created in the last tutorial. We’ll start by retrieving all your currently saved data requests so that we can find the appropriate data request and its data request ID. We’ll then examine the data request’s current settings, and change its description.

    Before You Begin

    • Register an app
    • Acquire a 3-legged OAuth token with data:create, data:read, and data:write scopes. The token’s authenticated user must have executive overview permissions.
    • Verify that you have access to a relevant BIM 360 account that contains at least one project. If you don’t know your account ID, you can derive it from your hub ID: Use GET hubs in the Data Management API to retrieve your hub ID. Remove the initial “b.” from the hub ID to get your account ID. For example, a hub ID of b.c8b0c73d-3ae9 translates to an account ID of c8b0c73d-3ae9.

    Step 1: Get a List of Saved Requests

    Use GET requests to retrieve a list of your saved data requests. This endpoint retrieves a list that is restricted to the requester’s saved data requests, so it won’t list any data requests created by other users. If you have many saved data requests, you can set request parameters to limit the number of returned requests, offset the point where you start returning requests, and set sort order. We won’t specify any of this, so the endpoint will use default settings of ascending sort order, a limit of 20 requests, and no offset.

    Request

    curl -X GET 'https://developer.api.autodesk.com/data-connector/v1/accounts/<accountId>/requests?limit=20&sort=desc' \
    -H 'Authorization: Bearer <authToken>'
    

    Response

    {
        "pagination": {
            "limit": 20,
            "offset": 0,
            "totalResults": 1
        },
        "results": [
            {
                "id": "55e410c5-4294-44ce-becf-68e1cfd6738c",
                "description": "My Weekly Extract",
                "isActive": true,
                "accountId": "872264f8-2433-498d-8d36-16649ecb13fe",
                "projectId": "ffffffff-1f51-4b26-a6b7-6ac0639cb138",
                "createdBy": "73f00c25-a5f9-4c05-861d-ce56d54fa649",
                "createdByEmail": "your.name@autodesk.com",
                "updatedBy": "73f00c25-a5f9-4c05-861d-ce56d54fa649",
                "scheduleInterval": "WEEK",
                "reoccuringInterval": 1,
                "effectiveFrom": "2020-11-19T16:00:00.000Z",
                "effectiveTo": "2021-11-19T16:00:00.000Z",
                "lastQueuedAt": "2020-11-19T16:32:54.725Z",
                "nextExecAt": "2020-11-26T16:00:00.000Z",
                "serviceGroups": [
                    "admin",
                    "issues",
                    "locations",
                    "submittals",
                    "cost",
                    "rfis"
                ],
                "callbackUrl": null,
                "createdAt": "2020-11-19T16:32:13.545Z",
                "updatedAt": "2020-11-19T16:32:54.728Z",
                "deletedAt": null
            }
        ]
    }
    
    Show More

    The results returned by this endpoint report the ID, settings, and status of each data request (in this case just the single data request we created in the last tutorial). We’ll use the ID of the data request in the next step when we update the data request.

    Note that if you have the ID of a single data request for which you want to see status, you can use the GET requests/:requestId endpoint instead of this endpoint to retrieve the request’s status without having to list other data requests.

    Step 2: Change Your Request’s Active Status

    To update your data request’s description, use the PATCH requests endpoint. It accepts a set of parameter settings that you want to change in the data request. You don’t need to specify all the parameters settings, just the one you want to change. In this example, it’s description. We’ll change it to “My Updated Weekly Extract”.

    Request

    curl -X PATCH 'https://developer.api.autodesk.com/data-connector/v1/accounts/<accountId>/requests/<requestId>' \
    -H 'Content-Type: application/json' \
    -H 'Authorization: Bearer <authToken>' \
    -d '{
        "description": "My Updated Weekly Extract"
    }'
    

    Response

    {
        "id": "55e410c5-4294-44ce-becf-68e1cfd6738c",
        "description": "My Updated Weekly Extract",
        "isActive": true,
        "accountId": "872264f8-2433-498d-8d36-16649ecb13fe",
        "projectId": "ffffffff-1f51-4b26-a6b7-6ac0639cb138",
        "createdBy": "73f00c25-a5f9-4c05-861d-ce56d54fa649",
        "createdByEmail": "your.name@autodesk.com",
        "updatedBy": "73f00c25-a5f9-4c05-861d-ce56d54fa649",
        "scheduleInterval": "WEEK",
        "reoccuringInterval": 1,
        "effectiveFrom": "2020-11-19T16:00:00.000Z",
        "effectiveTo": "2021-11-19T16:00:00.000Z",
        "lastQueuedAt": "2020-11-19T16:32:54.725Z",
        "nextExecAt": "2020-11-26T16:00:00.000Z",
        "callbackUrl": null,
        "createdAt": "2020-11-19T16:32:13.545Z",
        "updatedAt": "2020-11-19T16:35:13.912Z",
        "deletedAt": null,
        "serviceGroups": [
            "admin",
            "issues",
            "locations",
            "submittals",
            "cost",
            "rfis"
        ]
    }
    
    Show More

    The response contains the updated parameter settings for your specified data request.

     
    ______
    icon-svg-close-thick

    Cookie preferences

    Your privacy is important to us and so is an optimal experience. To help us customize information and build applications, we collect data about your use of this site.

    May we collect and use your data?

    Learn more about the Third Party Services we use and our Privacy Statement.

    Strictly necessary – required for our site to work and to provide services to you

    These cookies allow us to record your preferences or login information, respond to your requests or fulfill items in your shopping cart.

    Improve your experience – allows us to show you what is relevant to you

    These cookies enable us to provide enhanced functionality and personalization. They may be set by us or by third party providers whose services we use to deliver information and experiences tailored to you. If you do not allow these cookies, some or all of these services may not be available for you.

    Customize your advertising – permits us to offer targeted advertising to you

    These cookies collect data about you based on your activities and interests in order to show you relevant ads and to track effectiveness. By collecting this data, the ads you see will be more tailored to your interests. If you do not allow these cookies, you will experience less targeted advertising.

    icon-svg-close-thick

    THIRD PARTY SERVICES

    Learn more about the Third-Party Services we use in each category, and how we use the data we collect from you online.

    icon-svg-hide-thick

    icon-svg-show-thick

    Strictly necessary – required for our site to work and to provide services to you

    Qualtrics
    W
    Akamai mPulse
    W
    Digital River
    W
    Dynatrace
    W
    Khoros
    W
    Launch Darkly
    W
    New Relic
    W
    Salesforce Live Agent
    W
    Wistia
    W
    Tealium
    W
    Upsellit
    W
    CJ Affiliates
    W
    Commission Factory
    W
    Google Analytics (Strictly Necessary)
    W
    Typepad Stats
    W
    Geo Targetly
    W
    SpeedCurve
    W
    Qualified
    #

    icon-svg-hide-thick

    icon-svg-show-thick

    Improve your experience – allows us to show you what is relevant to you

    Google Optimize
    W
    ClickTale
    W
    OneSignal
    W
    Optimizely
    W
    Amplitude
    W
    Snowplow
    W
    UserVoice
    W
    Clearbit
    #
    YouTube
    #

    icon-svg-hide-thick

    icon-svg-show-thick

    Customize your advertising – permits us to offer targeted advertising to you

    Adobe Analytics
    W
    Google Analytics (Web Analytics)
    W
    AdWords
    W
    Marketo
    W
    Doubleclick
    W
    HubSpot
    W
    Twitter
    W
    Facebook
    W
    LinkedIn
    W
    Yahoo! Japan
    W
    Naver
    W
    Quantcast
    W
    Call Tracking
    W
    Wunderkind
    W
    ADC Media
    W
    AgrantSEM
    W
    Bidtellect
    W
    Bing
    W
    G2Crowd
    W
    NMPI Display
    W
    VK
    W
    Adobe Target
    W
    Google Analytics (Advertising)
    W
    Trendkite
    W
    Hotjar
    W
    6 Sense
    W
    Terminus
    W
    StackAdapt
    W
    The Trade Desk
    W
    RollWorks
    W

    Are you sure you want a less customized experience?

    We can access your data only if you select "yes" for the categories on the previous screen. This lets us tailor our marketing so that it's more relevant for you. You can change your settings at any time by visiting our privacy statement

    Your experience. Your choice.

    We care about your privacy. The data we collect helps us understand how you use our products, what information you might be interested in, and what we can improve to make your engagement with Autodesk more rewarding.

    May we collect and use your data to tailor your experience?

    Explore the benefits of a customized experience by managing your privacy settings for this site or visit our Privacy Statement to learn more about your options.