Cannot access System endpoint from OpenSolar API... "Permission_error"
I am trying to access the https://api.opensolar.com/api/orgs/:org_id/systems/ endpoint from an admin account that has been made a machine user.
I am getting the following response: "permission_error": "System cannot be viewed. You are missing some permissions: [Edit, View, Create, Delete]"
I have read all the permissions documentation and have had no trouble with any other endpoints. Anyone else have this problem?
-
Officiële opmerking
Hey Ben and Michael,
For accessing systems endpoint, adding a Query parameter fieldset=list is a must.
The endoint URL will look like thishttps://api.opensolar.com/api/orgs/:org_id/systems/?fieldset=list
or
https://api.opensolar.com/api/orgs/:org_id/systems/:system_id/?fieldset=list
Kind regards,
GaganActies voor opmerkingen -
Thanks for that. That makes sense now, I was parsing the system sold parameter from the projects endpoint, and using that to make the next call I have now added the static content onto the end of the request. I was also making the assumption that you only required that query parameter if you were requesting a list.
U moet u aanmelden om een opmerking te plaatsen.
Opmerkingen
3 opmerkingen