Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • 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
  • Sign in
      Forgot your password?

      or sign in with your existing account

      Google

Side Menu

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

Content

General discussion
  1. OpenProject
  2. Forums
  3. General discussion
  4. Create Group-Membership with API

Create Group-Membership with API

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

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...