Skip to content
English
  • There are no suggestions because the search field is empty.

📉 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

ℹ️ 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:

[
    {
        "id": "87fa7b38-44e8-4465-b5b7-e6b17489205c",
        "name": "OEE ZACN"
    },
    {
        "id": "888fa6ec-4f58-4518-8568-a0b33aa1d84c",
        "name": "Machine failure > 2 h"
    },
    {
        "id": "90b1ba3e-4877-4e14-a87a-63362e3664f9",
        "name": "Rework [h]"
    }
 }
]

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:

 
 
        {
            "id": "fa9089f3-2bef-4750-8226-40a8ca12b7cd",
            "name": "S_Endmontage",
            "subTileRecording": false
        }
 

Use this ID in the DELETE request.

4. Delete Specific Value

Use the following endpoint to delete a specific KPI value:

 
https://api-tenant.valuestreamer.de/api/exchange/kpi-data/{date}/{team-id}/{kpi-id}

Where:

  • {date}: Date in YYYY-MM-DD format (e.g. 2025-10-19 for a daily KPI)

  • {team-id}: Team ID (e.g. fa9089f3-2bef-4750-8226-40a8ca12b7cd for S_Endmontage)

  • {kpi-id}: KPI ID (e.g. 888fa6ec-4f58-4518-8568-a0b33aa1d84c for "Machine failure > 2 h")

Example URL:

 
https://api-tenant.valuestreamer.de/api/exchange/kpi-data/2025-10-19/fa9089f3-2bef-4750-8226-40a8ca12b7cd/888fa6ec-4f58-4518-8568-a0b33aa1d84c

📸 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:

 
https://api-tenant.valuestreamer.de/api/exchange/kpi-data/{date}/{team-id}/{kpi-id}/{sub-tile-id}

You can find the {sub-tile-id} in the detailed KPI data:

        {
            "id": "ace4b82a-d233-4610-8781-7df6bc9dc072",
            "name": "D_Pre-Assembly",
            "subTileRecording": true,
            "subTiles": [
                {
                    "id": "77d03d83-3519-43dc-b995-9a68e297d88e",
                    "name": "Early",
                    "team": "ace4b82a-d233-4610-8781-7df6bc9dc072",
                    "orderId": 1
                },
                {
                    "id": "e896db9d-fdd0-4fb4-b07d-f97668caa811",
                    "name": "Late",
                    "team": "ace4b82a-d233-4610-8781-7df6bc9dc072",
                    "orderId": 2
                },
                {
                    "id": "ee5dbd67-e368-4ab5-bd1e-b109e94b53f9",
                    "name": "Night",
                    "team": "ace4b82a-d233-4610-8781-7df6bc9dc072",
                    "orderId": 3
                }
            ]
        },

✨ 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.