api dox
- Edited
sean That's reasonable. What I was suggesting was not necessarily related to the API itself, but rather about building a channel of communication so that we know what's coming and when. This would be for the actual Opalstack users and would preferably lean on the technical side. I can read the blog about new and exiting stuff and I can check the boards for solutions. This channel would serve an entirely different purpose, if it makes sense to you, of course.
- Edited
gelu We'll most likely use this community forum as the primary channel for communicating updates like that.
RSS feeds are already available here: https://community.opalstack.com/d/5-forum-rss-feeds
API working great -- going to save my skin doing 100's of email account migrations -- thanks!
Having trouble with api/v0/mailuser/pwdch/
--> 400 Bad Request {"error": "INVALID"}
Here's my code:
r = requests.post(
'https://my.opalstack.com/api/v0/mailuser/pwdch/',
auth=TokenAuth(TOKEN),
json={
'id': 'd035b2b7-c55b-413b-a5f1-4edbe7ea5de0',
'password': 'some password'
},
)
print (r.status_code, r.reason, r.text)
> 400 Bad Request {"error": "INVALID"}
No problem with other requests.
I have tried all combinations of data=
vs. json=
and json.dumps()
vs. normal dict
Any ideas what I'm doing dumb here appreciated.
sean Damn. No Dice Sean. Here's a complete session with just a few details redacted, hopefully give a clue what dumb-ass thing I am doing...
mailbox_id = 'd035b2b7-c55b-413b-a5f1-4edbe7ea5de0'
... r = requests.get(
... 'https://my.opalstack.com/api/v0/mailuser/read/{}'.format(mailbox_id),
... auth = TokenAuth(TOKEN),
... )
... print(r, r.content)
...
<Response [200]> b'{"id": "d035b2b7-c55b-413b-a5f1-4edbe7ea5de0", "name": "<xxx>", "pending_deletion": false, "ready": true, "imap_server": "<uuid>", "init_created": true}'
r = requests.post(
... 'https://my.opalstack.com/api/v0/mailuser/pwdch/',
... auth=TokenAuth(TOKEN),
... json=[{
... 'id' : mailbox_id,
... 'password': 'some password'
... }],
... )
... print(r, r.reason)
...
<Response [400]> Bad Request
as of June 2021 the API is at v1. The new docs are:
https://my.opalstack.com/api/v1/doc/
https://my.opalstack.com/api/v1/redoc/
Any chance you can add to the docs where lists are required? Got caught with DNSRecord/Update failing in my ddns script due to not passing a list. I know you have mentioned that lists are now required at a number of end points, would be great if those can be called out in the V1 docs. Thanks!