Skip to content

Latest commit

 

History

History
65 lines (44 loc) · 1.55 KB

workspaceMember_update.rst

File metadata and controls

65 lines (44 loc) · 1.55 KB

workspaceMember_update

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

Summary

  • Method: PUT
  • Response Code: 200
  • Response Formats: application/xml application/json
  • Since: UForge 3.3.2

Updates the membership role of an user in a workspace.

Security Summary

  • Requires Authentication: true
  • Entitlements Required: None

URI Parameters

  • wid (required): the id of the workspace-object
  • mid (required): the id of the membership-object
  • oid (required): the id of the org-object

HTTP Request Body Parameters

A membership-object object

Example Request

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

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

<ns0:membership xmlns:ns0="http://www.usharesoft.com/uforge">
    <role>Collaborator</role>
    <userEmail>example@example.com</userEmail>
</ns0:membership>
  • membership-object
  • workspace-api-resources
  • workspace-object
  • workspaceMember-delete
  • workspaceMember-deleteList
  • workspaceMember-getAll
  • workspaceMember-invite
  • workspaceMember-update
  • workspaceMember-updateList