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 obtained via either a two-legged or three-legged OAuth flow. |
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 |
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 in the “default” model of a given twin.
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
No response body, success = 204