Added by Lukas Dorn-Fussenegger almost 2 years ago
Hi all,
I'm struggling with creating a group membership via API. I don't have an idea, how this can be done - the documentation is not clear enough.
Which is the URL I would have post/patch to?
Which is the payload that I need have to send?
Creating Users works fine via api, but here I really need help.
Thank you!
Replies (4)
Hi
please share your efforts that you understood on the docs, without that we will not be able to help you
I might have the same problem, I can't understand witch API endpoint I can use to add existing Members with a specific existing Role to a specific existing Project ?
I faced similar kind of issue last time, I am still searching for some proper solution.
www.thirtyonetoday.com
I am posting
{'principal': {'href': '/api/v3/groups/1},
'project': {'href': '/api/v3/projects/1'},
'roles': [{'href': '/api/v3/roles/1'}]}
on api/v3/memberships
and it works
The api documentation on this one don't help a lot I agree