Hello everyone,
I’m setting up a private api, everything works fine except when i add a collaborator to a project, my command seems to work from the ownner point of view but when i login as the collaborator, i can’t see the project. Here is my example :
#1 Check the list of collaborator (owner pov)
curl -X GET “http://localhost:8011/api/v1/collaborators/d850b453-de7d-4899-85ef-c8169c84002c/” -H “accept: application/json” -H “Authorization: Token VkNS92bbmWXk3TcGUVLqgw9gNnBZhL6L1KwZ5xdTzKwSL7gOGi6WQlZmNr9coDkfEmLDMo6tVHpj8A3CTTZKqLWfvxieEr8bwnAh”
[]
#2 Add the collaborator “test” as “editor” (owner pov)
curl -X POST “http://localhost:8011/api/v1/collaborators/d850b453-de7d-4899-85ef-c8169c84002c/” -H “accept: application/json” -H “Content-Type: application/json” -H “Authorization: Token VkNS92bbmWXk3TcGUVLqgw9gNnBZhL6L1KwZ5xdTzKwSL7gOGi6WQlZmNr9coDkfEmLDMo6tVHpj8A3CTTZKqLWfvxieEr8bwnAh” -d “{ "collaborator": "test", "role": "editor"}”
{“collaborator”:“test”,“role”:“editor”}
#3 List of projects (“test” pov)
qfieldcloud-cli list-projects
Listing projects…
User does not have any projects yet.
Is something wrong with my command? I’ve tested a similar command with the online api and it worked so what am i missing?
Imported from GitHub discussion by @Celpho on 2022-07-07T13:52:42Z