Request

Response

    POST

    timeseries/models/{modelID}/deletestreamsdata

    Delete datapoints of multiple streams.

    Resource Information

    Method and URI
    POST
    https://developer.api.autodesk.com/tandem/v1/timeseries/models/{modelID}/deletestreamsdata
    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
    Model URN of the model owning the stream.

    Request

    Query String Parameters

    substreams
    string
    Comma separated list of sub-streams to delete data from. The substream should be specified by parameter ID.
    from
    string
    Lower time boundary (yyyy-mm-dd) of time range to be deleted. If specified, ‘to’ and ‘substreams’ parameters must also be specified.
    to
    string
    Upper time boundary (yyyy-mm-dd) of time range to be deleted. If specified, ‘substreams’ parameter must also be specified.
    allSubstreams
    int
    Enables deletion of all stream data only by their keys, without filtering by substreams.

    Request

    Body Structure

    List of IDs (incl flags) of the stream elements

    keys
    array: string

    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
    Unauthorized
    500
    Internal Server Error
    The service encountered an error that it was unable to handle. Wait for a few minutes and resend the request. If the error persists, contact us at aps.help@autodesk.com.

    Response

    Body Structure (204)

    Response for 204 has no body.