workspaceMember_updateList

PUT /orgs/{oid}/workspaces/{wid}/memberships

Updates the membership roles of one or more users in a workspace.

Security Summary

  • Requires Authentication: true
  • Entitlements Required: None

URI Parameters

  • wid (required): the id of the workspace
  • oid (required): the id of the org

HTTP Request Body Parameters

A memberships object

Example Request

curl "https://uforge.example.com/api/orgs/{oid}/workspaces/{wid}/memberships" -X PUT \
-u USER_LOGIN:PASSWORD -H "Accept: application/xml" --data-binary "@representation.xml"

Example of representation.xml content (the request body):

<ns0:memberships xmlns:ns0="http://www.usharesoft.com/uforge">
        <membership>
                <role>Collaborator</role>
                <userEmail>example@example.com</userEmail>
        </membership>
        <membership>
                <role>Administrator</role>
                <userEmail>example2@example.com</userEmail>
        </membership>
</ns0:memberships>