In this article
Delete Samples By List
Delete samples having Ids in the supplied list of sample Ids.
URL
https://{{HOST}}/timeseries/samples
Method
DELETE
Required IMS Scopes
- Read
- Write
Required ACL Permissions
- owner
- admin
Versions Supported
- 2.3
URL Query Parameters
| Name | Description | Example | Type |
|---|---|---|---|
| v required |
Version of the API to use | v=2.3 | string |
Request Header Parameters
| Type | Value | Description |
|---|---|---|
| Authentication required |
Bearer {access_token} | Retrieve access token |
| Content-Type required |
application/json | Description |
Request Body Parameters
| Name | Description | Schema |
|---|---|---|
| Sample Id List required |
The list of sample Ids to delete | array |
Example
Request
curl -X DELETE
'https://{{HOST}}/timeseries/samples?v=2.3'
-H 'Authorization: Bearer {access_token}'
-H 'Content-Type: application/json'
-d '[
"fb6ec89e-f4dc-4f37-823e-c49b69f23cdb:QuarterlyHourAverage:1485812700000",
"fb6ec89e-f4dc-4f37-823e-c49b69f23cdb:QuarterlyHourAverage:1485811800000"
]'
Errors
| Error | Description |
|---|---|
| 400 | Bad Request |
| 403 | Forbidden |
| 500 | Internal Server Error |