I am interested in using the API and python to do per-room dumps (backups) in an automated fashion.
I see api-backup definitions.
Is there a way to dump on a room-by-room basis via the API?
Many thanks
Ivan
(WHY? - some room are super busy and some are quiescent)
Hello @ivan
Unfortunately, partial backups are not implemented yet. Technically, you can use following method to get the archive of a room specified in request:
Since room is also considered a folder, you can try sending this request specifying the ID of a room as folderIds
.
yes please Constantine. Ill be trying API this weekend
ivan
Looking forward to your feedback.
ivan
5
Sorry for the delay, but running in to an OLD adversary
TFA
I can’t get a token to pass on to the dump command.
curl --request POST --header “Content-Type: application/json” --data “{"userName":"MYUSER","password":"MYPASSWD"}” “https://MYPORTAL:3443/api/2.0/authentication”
I see
{“error”:{“message”:“User authentication failed”,“type”:null,“stack”:null,“hresult”:0},“status”:1,“statusCode”:401}
Can I authenticate without an MFA token it’s mandatory for ALL users?
Id then run something like ( to grab folder 9999)
curl -L -X PUT '/api/2.0/files/fileops/bulkdownload' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"folderIds": [
9999,
"text"
]
}'
You should try creating API Key for that task:
ivan
7
I dont know what I was thinking ,API bearer is the way to go. I’ll try again at weekend.
Thanks
Ivan