Top Menu

Jump to content
    Global modules

    Global modules

    • Home
    • Projects
    • Activity
    • Work packages
    • Gantt charts
    • Calendars
    • Team planners
    • Boards
    • News
    Home
    Home
Help
    Getting started
    • Introduction video
  • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support
  • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation

User menu

Sign in
Forgot your password?

or sign in with your existing account

OpenProject ID Google

Side Menu

Collapse project menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

Expand project menu
General discussion
  1. OpenProject Community
  2. OpenProject
  3. Forums
  4. General discussion
  5. Create Group-Membership with API

Create Group-Membership with API

Added by Lukas Dorn-Fussenegger almost 3 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)

RE: Create Group-Membership with API - Added by Adam Szabo over 2 years ago

Hi

please share your efforts that you understood on the docs, without that we will not be able to help you

RE: Create Group-Membership with API - Added by marc rcdevs over 2 years ago

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 ?

RE: Create Group-Membership with API - Added by Ronald Rodriquez over 2 years ago

I faced similar kind of issue last time, I am still searching for some proper solution.

www.thirtyonetoday.com

RE: Create Group-Membership with API - Added by marc rcdevs over 2 years ago

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

  • (1 - 4/4)
Loading...