POST
timeseries/models/{modelID}/webhooks/generic
Generic endpoint for posting stream data. It expects either a single JSON object or an array of objects. every such objects is treated as an individual event.
unless specified via url parameter idpath
, the ID of the stream associated with the event is expected to be found in the ID field at the root level of the event. E.g forms a valid payload:
[
{
"id": "AQAAAB9jtMqU8UQYm_QTmtmTYmAAAAAA",
"temp": 42.1
},
{
"id": "AQAAAOe3EZ58DEBbh5mZyFfbkRoAAAAA",
"hum": 98
}
]
Show More
But also just:
{
"id": "AQAAAOe3EZ58DEBbh5mZyFfbkRoAAAAA",
"hum": 98
}
Or with ?idpath=labels.adsk_id
:
{
"labels" : {
"adsk_id": "AQAAAOe3EZ58DEBbh5mZyFfbkRoAAAAA"
},
"hum": 98
}
Resource Information
Method and URI | POST https://developer.api.autodesk.com/tandem/v1/timeseries/models/{modelID}/webhooks/generic |
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 | Model ID |
Request
Body Structure
Stream data
Response
HTTP Status Code Summary
200 OK | |
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 request was successfully validated but it did not have the required permissions. |
Response
Body Structure (200)
Response for 200 has no body.