Feature #9725

Managing memberships and list existing roles via REST api

Added by Pierre-Yves Ronot over 10 years ago. Updated over 10 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:


Category:REST API
Target version:-


For an application we are developping, we need to be able to manage memberships with the REST api.
Attached is a patch that enables :
- access to the members of a project using the ?include=members option of the project's interface
- get and edit membership informations with GET /member/{id}.xml and PUT /member/{id}.xml
- add and remove memberships with POST /projects/{id}/members.xml and DELETE /member/{id}.xml
- list roles with GET /roles.xml and get role informations with GET /role/{id}.xml

A member description takes this form (consistent with the web interface) (to POST to /projects/{id}/members.xml) :

    <role_ids type=\"array\">
    <user_ids type=\"array\">

For the edition :

    <role_ids type="array">
        <role_id name="Manager ">4</role_id>
        <role_id name="Rapporteur ">5</role_id>

Can someone review the patch ? If possible, we would like this feature to be added to the next release.

Thanks in advance

patch_membership - REST membership patch (11 KB) Pierre-Yves Ronot, 2011-12-05 13:19

patch_membership - Up to date patch (11 KB) Pierre-Yves Ronot, 2011-12-12 18:54

patch_membership - Patch for the 1.3 stable branch. (11.7 KB) Pierre-Yves Ronot, 2011-12-14 16:43

Related issues

Duplicates Redmine - Feature #7420: Rest API for projects members Closed 2011-01-24

Associated revisions

Revision 8799
Added by Jean-Philippe Lang over 10 years ago

Adds a simple API for listing roles (#9725).


#1 Updated by Pierre-Yves Ronot over 10 years ago

Related : #7420, #4968

#2 Updated by Yannis Mazzer over 10 years ago


Very good idea, I asked for it some weeks ago on irc channel :)

Pierre-Yves Ronot wrote:

Related : #7420, #4968

#5 Updated by Jean-Philippe Lang over 10 years ago

  • Status changed from New to Closed
  • Resolution set to Duplicate

See #7420. Memberships API is added for 1.4. A simple role API was also added.
Have a look at REST API.

#6 Updated by Pierre-Yves Ronot over 10 years ago

Thank you very much, we appreciate it.

Also available in: Atom PDF