POST COPY Datapoints by datatype unique ID

Changed on

Permission level: 5

post/forecast/copy/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

Datatype unique ID

Request body application/x-www-form-urlencoded

from_startstring date required

Start date of the datapoint that we want to copy

from_endstring date required

End date of the datapoint that we want to copy

to_startstring date required

Start date of the copied datatype

to_endstring date required

End date of the copied datatype

Response

200

statusinteger
tokenstring
errorunknown

Example response

{
  "status": 1,
  "data": [
    {
      "id": 223,
      "company_id": 303579,
      "forecast_data_type_id": 29,
      "value": 1,
      "period": "2017-09-27 00:00:00",
      "created_by": "3475050",
      "created_at": "2017-09-24 20:44:01",
      "hour": "12:00am"
    }
  ],
  "token": "xxxxxxx"
}

Changes