PUT Update imported historical data

Changed on

Permission level: 5

put/labour_forecasting/history/bulk/{metric_id}?access_token=xxxxxxx (COPY)

Request

  • Base URL
    https://www.humanity.com/api/v2
  • Auth
    API key in query parameter access_token

Path parameters

metric_idinteger required

Metric unique ID for which we want to update datapoints

Request body application/x-www-form-urlencoded

datastring json required

{ "data": [ { "value": 48, "id": "3240447f-efdb-11ed-9cc4-6fa4e944f71e", "time_point": "2023-02-01T02:00:00" } ] }

Response

200

statusinteger
datastring[]
tokenstring
errorunknown

Example response

{
  "status": 1,
  "data": [
    "Historical data updated successfully."
  ],
  "token": "35df73f89827bd3599310ed4dff3f244905751fb"
}

Changes