We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/api/v3/scenarios
import requests url = "https://engine.energytransitionmodel.com/api/v3/scenarios" headers = { "Accept": "application/json", "Authorization": "Bearer YOUR_TOKEN" } data = { "scenario": { "scenario_id": "1234" } } print(response.status_code) print(response.reason) >> 200 >> 'OK'
import requests url = "https://engine.energytransitionmodel.com/api/v3/scenarios" headers = { "Accept": "application/json", } data = { "scenario": { "scenario_id": "1234" } } print(response.status_code) print(response.reason) >> 200 >> 'OK'
import requests url = "https://engine.energytransitionmodel.com/api/v3/scenarios" headers = { "Accept": "application/json", "Authorization": "Bearer <VALID_KEY>" } data = { "scenario": { "scenario_id": "1234" } } print(response.status_code) print(response.reason) print(response.json()['errors']) >> 403 >> 'Forbidden' >> ['Scenario does not belong to you']
Regardless of the Auth bearer I want to be able to copy public scenarios.
The text was updated successfully, but these errors were encountered:
Thanks @thesethtruth for your issue! I'll put it on our dev backlog
Sorry, something went wrong.
noracato
louispt1
No branches or pull requests
Current behavior
Exp. 1 - using example YOUR_TOKEN as auth (so not a valid key) ✅
Exp. 2 - without auth ✅
Exp. 3 - with actually existing API key (but not of scenario owner) ❌
Expected behaviour
Regardless of the Auth bearer I want to be able to copy public scenarios.
The text was updated successfully, but these errors were encountered: