Request

Response

    POST

    models/{modelID}/resetstreamssecrets

    Resets ingestion secret(s), associated with specific data stream(s).

    Resource Information

    Method and URI
    POST
    https://developer.api.autodesk.com/tandem/v1/models/{modelID}/resetstreamssecrets
    Authentication Context
    user context optional
    Required OAuth Scopes
    data:write
    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 Authorization Code flow, Authorization Code flow with PKCE, or Secure Service Account flow (for headless scenarios).
    Region
    string
    Specifies the region where your request should be routed. Possible values: US, EMEA. For more details, see Regions.
    Content-Type*
    string
    Must be application/json
    * Required

    Request

    URI Parameters

    modelID
    string
    ID of the model owning the stream

    Request

    Body Structure

    Query, containing list of keys to reset secrets for

    hardReset
    boolean
    Only relevant in the reset secret context.
    includeEmpty
    boolean
    Only relevant in the query context (if false, missing secret results in a 404).
    keys
    array: string
    List of element IDs (with flags) to get secrets for.

    Response

    HTTP Status Code Summary

    204
    No Content
    400
    Bad Request
    The service was unable to process the request. The syntax of the request may be malformed or the request may be missing a required header. Do not resend the request without fixing the issue. The response body may indicate what is wrong with the request.
    403
    Forbidden
    The service was unable to process the request. The syntax of the request may be malformed or the request may be missing a required header. Do not resend the request without fixing the issue. The response body may indicate what is wrong with the request.
    500
    Internal Server Error
    The service was unable to process the request. The syntax of the request may be malformed or the request may be missing a required header. Do not resend the request without fixing the issue. The response body may indicate what is wrong with the request.

    Response

    Body Structure (204)

    Response for 204 has no body.

    Example

    Reset the stream secrets for the given set of streams. NOTE: streams are always stored in the “default” model of a given facility.

    curl -v 'https://developer.api.autodesk.com/api/v1/models/urn:adsk.dtm:d5eZt_XtRzqUHT93-vNZxw/resetstreamssecrets' \
      -X 'POST' \
      -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsIm....' \
      -H 'Content-Type: application/json' \
      -d '{
            "keys": [
                "AQAAAMfLKHNexUCbmAjBEaQs_lUAAAAA"
            ],
            "hardReset": true
        }'
    
    Show More

    Response

    {
      "AQAAAMfLKHNexUCbmAjBEaQs_lUAAAAA": "KFldY6OxShyX4S61cR4ZaA"
    }