📉 Delete KPI Values Using Postman (Example: Machine Downtime on 2025-10-19)
This article provides a step-by-step guide for deleting specific KPI values in ValueStreamer using Postman. The example shows how to remove a KPI value accidentally recorded for a non-working Sunday.
🔍 Contents
- Requirements
- Retrieve All KPIs via API
- View KPI Details
- Identify the Team ID
- Delete Specific Value
- Delete Value for Sub-KPIs
- Tips & Best Practices
- FAQ
Requirements
-
A free Postman account: https://www.postman.com
-
Your ValueStreamer API credentials (username & password)
ℹ️ Note: If you do not have API credentials, please contact support via the Help Desk.
1. Retrieve All KPIs via API
GET https://api-Tenant.valuestreamer.de/api/exchange/kpi/
📸 Screenshot: GET request to list all KPIs using Basic Auth
Example JSON response:
2. View KPI Details
GET https://api-Tenant.valuestreamer.de/api/exchange/kpi/888fa6ec-4f58-4518-8568-a0b33aa1d84c
This request returns detailed information, including the associated teams.
📸 Screenshot: Viewing KPI details in Postman
3. Identify the Target Team ID
Example JSON snippet:
Use this ID in the DELETE request.
4. Delete Specific Value
Use the following endpoint to delete a specific KPI value:
Where:
-
{date}: Date in YYYY-MM-DD format (e.g.2025-10-19for a daily KPI) -
{team-id}: Team ID (e.g.fa9089f3-2bef-4750-8226-40a8ca12b7cdfor S_Endmontage) -
{kpi-id}: KPI ID (e.g.888fa6ec-4f58-4518-8568-a0b33aa1d84cfor "Machine failure > 2 h")
Example URL:
📸 Screenshot: Sending DELETE request in Postman
✅ If successful, the API will return a 200 OK and the value will be deleted.
⚠️ Warning: Deletions cannot be undone. Make sure all IDs and the date are correct.
5. Delete Value for Sub-KPIs
If the KPI uses sub-tiles (e.g. shift data like Early/Late/Night), an additional sub-tile ID is required. The DELETE endpoint is extended as follows:
You can find the {sub-tile-id} in the detailed KPI data:
✨ Tip: Only use sub-tile IDs for teams where subTileRecording is set to true.
✨ Tips & Best Practices
-
Always run a GET request first to confirm data presence
-
Use DELETE carefully with date, team ID, and KPI ID
-
Keep logs of deleted values for traceability
❓ FAQ
How do I find the correct KPI ID? Use the GET endpoint /api/exchange/kpi/ to view all KPIs with their names and IDs.
Can I use other tools to delete KPI values? Yes, such as Power Automate or your own REST API scripts. Postman is ideal for quick tests and manual operations.
What is the correct date format for deletions?
-
Daily KPIs: YYYY-MM-DD
-
Weekly KPIs: Monday of the week (YYYY-MM-DD)
-
Monthly KPIs: First day of the month (YYYY-MM-01)
Can I accidentally delete all values of a KPI? Only if you send multiple DELETE requests for different dates. Always use the endpoint with a specific date.