You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, @chleeb . Thanks for the report. We do not use this API endpoint on QField, QFieldSync and qfield.cloud anymore, which might explain why we never caught it was broken. Just not to give you false expectations, it will not be in our priority bugfix queue for the upcoming months. Actually we were considering internally to deprecate it. If you rely on this functionality, I am open to keep it, but feel free to send us an email on sales@qfield.cloud or open a PR fixing it.
As this might be a bug or at least a mistake in the documantation, I created an issue out of the discussion.
Best,
Christoph
Discussed in opengisch/QField#3931
Originally posted by chleeb February 20, 2023
Hi,
I wanted to use the QFieldcloud REST API to add an collaborator to an existing QField project in the QField cloud.
Following the documentation (https://docs.qfield.org/reference/qfieldcloud/api/) a data package
is submitted as POST request via api/v1/collaborators/{projectid}/.
However, I wondered if this can be correct as no user name is submitted together with the role.
I tried to implement the POST request into a python script:
what results in
I then played around and added a collaborator in the data package:
data = {"collaborator": "USER", "role": "editor"})
and got:
Has anyone an idea how to add a collaborator to a project via the API?
Thanks,
Christoph
The text was updated successfully, but these errors were encountered: