PUT Datapoint by the datatype unique id

Changed on

Permission level: 5

put/forecast/datapoint/unique_id/{{unique_id_uid}}?access_token=xxxxxxx

Request

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

Query parameters

unique_id_uidinteger required

Datapoint unique ID

Request body application/x-www-form-urlencoded

valueinteger required

Updates the value of the datapoint

periodstring date-time required

The time of the datapoint that we want to update eg (2017-09-24 10:00:00)

Response

200

statusinteger
tokenstring
errorunknown

Example response

{
  "status": 1,
  "data": {
    "id": 222,
    "company_id": 303579,
    "forecast_data_type_id": 29,
    "value": 8,
    "period": "2017-09-24 10:00:00",
    "created_by": 3475050,
    "created_at": "2017-09-24 20:37:05",
    "hour": "10:00am"
  },
  "token": "xxxxxxx"
}

Changes