In this article
Delete Samples for a Timeseries ID
Deletes the samples for the specified timeseriesId
URL
https://{{HOST}}/timeseries/samples
Method
DELETE
Required IMS Scopes
- Read
- Write
Required ACL Permissions
- owner
- admin
Versions Supported
- 2.0 (Default)
- 2.1
URL Query Parameters
| Name | Description | Example | Type |
|---|---|---|---|
| v optional |
Version of the API to use | v=2.0 | string |
| timeseries_ids required |
Timeseries ID from which to delete samples | GUID(s) | string |
| startTime optional |
Starting time of the target period | 2018-01-01T00:00:00+00:00 | ISO 8601 string(date-time + offset) |
| endTime optional |
Ending time of the target period | 2018-12-31T23:59:59+00:00 | ISO 8601 string(date-time + offset) |
Request Header Parameters
| Type | Value | Description |
|---|---|---|
| Authentication | Bearer {access_token} required |
Retrieve access token |
| Content-Type | application/json required |
Description |
Example
Request
curl -X DELETE
'https://{{HOST}}/timeseries/samples?timeseries_ids=920de700-8a84-4306-aef7-2676df222c6f'
-H 'Authorization: Bearer {access_token}
-H 'Cache-Control: no-cache'
-H 'Content-Type: application/json'
Errors
| Error | Description |
|---|---|
| 403 | Forbidden |