More
referral
Increase your income with Hive. Invite your friends and earn real cryptocurrency!

Power_Report API issues

Hello,

I’m trying to generate a power_report using the api/v2 but for some reason it is not recognizing the “start_date”

full request done via Bash shell :
curl -X ‘GET’
https://api2.hiveos.farm/api/v2/farms/MY_FARM_ID/power_report?start_date=2021-12-22&period=1d&action=download
-H ‘accept: application/pdf’
-H ‘Authorization: Bearer MY_HIVE_TOKEN’

response :
{“message”:“The given data was invalid.”,“errors”:{“date”:[“The date field is required.”]}}

i followed the api specification for power_report located at :
https://app.swaggerhub.com/apis/HiveOS/public/2.1-beta#/farms/get_farms__farmId__power_report

Maybe the api spec is outdated? I also tried replacing “start_date” with “date” and in this case the response is
{“message”: “Server Error”}

Unsure of how to correctly format this request, Any assistance would be greatly appreciated!

1 Like

did u find any answer?
For now if we replaced the start_date with date server will return next response:
“{
“message”: “This action is unauthorized.”,
“code”: 403
}”

This topic was automatically closed 416 days after the last reply. New replies are no longer allowed.