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

Date error when trying to run power_usage on API through swagger hub

I am using the api on swagger hub: https://app.swaggerhueror b.com/apis/HiveOS/public/2.1-beta

I am trying to run the power_report command but get I keep getting a error that says “The Date Field is Required”

I am using this format “date, 2020-07-01” and the sample says this “format: date, yyyy-mm-dd”

Any thoughts?

Thanks

Please provide more details about the query you send. Endpoint, params, etc.

I am having a similar issue with the api to get the power report.

I am using postman, tested auth with api token generated. Can get /farms as well as /auth/check to work. Hence i am quite confident the authorization token is working as expected.

When trying to use the power_report, i am getting a 403 error of “This action is unauthorized” Is there any settings i need to change to enable this?
Base Url: https://api2.hiveos.farm/api/v2

Complete url(excluding farmid ): https://api2.hiveos.farm/api/v2/farms//power_report?date=2021-12-05&period=1d&action=download
My Headers and body of result:

EDIT===
I suspect the api will not work on the free tier.

hey did you get the api to work?