Skip to main content

 Version 5

Legacy documentation for PageSeeder v5

register group member

/groups/{group}/members/{member}/registration [POST]

Description

Edit the subscription details for a member.

This URL has been deprecated in PageSeeder 5.2 and has been scheduled to be removed.

Use Service: /groups/{group}/members/{member}/manage [POST] instead.

Group membership parameters

If a group is specified on the request, the new member is also added to the group. All group membership parameters are optional, and default to the group's default values.

The notification parameter must be one of Immediate, Daily or None. Users are able to subsequently change this setting through the user interface in their group registration options.

The role parameter must be one of Guest, Reviewer, Contributor, Manager, Approver, Mod & App, Moderator.

The listed boolean parameter can be used to override the group's default setting. It affects whether other group member are able to see the member's user details. Users are able to subsequently change this setting through the user interface in their group registration options.

Registration / Deregistration

This service can be used to register/deregister a member to/from group by using the appropriate parameters ( register and deregister respectively).

Parameters

NameDescriptionRequiredTypeDefault
deregisterSet to true to deregister the member from the groupnobooleanfalse
field1Custom field #1 nostring
field10Custom field #10nostring
field11Custom field #11nostring
field12Custom field #12nostring
field13Custom field #13nostring
field14Custom field #14nostring
field15Custom field #15nostring
field2Custom field #2nostring
field3Custom field #3nostring
field4Custom field #4nostring
field5Custom field #5nostring
field6Custom field #6nostring
field7Custom field #7nostring
field8Custom field #8nostring
field9Custom field #9nostring
listedWhether the member's email address is listed in the groupnoboolean
notificationThe member’s notification option in the groupnoenum
registerSet to true to register the member to the groupnobooleanfalse
roleThe member’s role in the groupnoenum
notify-asyncWhether to send emails asynchronously (for slow email servers)nobooleanfalse

 

Permission

This service can only be invoked by a manager in the group or an administrator.

Response

When successful, the XML returned the full details of the updated membership as a <membership> element wrapped in a <membership-modification>:

<membership-modification>
  <membership id="[membershipid]"
              email-listed="[true|false]"
              notification="[none|immediate|daily]"
              flags="[flags]"
              [status="status"]
              [role="status"]>
    <member id="[member id]"
            firstname="[first name]"
            surname="[surname]"
            username="[username]"
            flags="[flags]"
            status="[activated|unactivated]">
      <fullname>[full name]</fullname>
    </member>
    <group id="[group id]"
           name="[name]"
           flags="[flags]"
           visibility="[visibility]"
           template="[template]">
      <description>[description]</description>
    </group>
  </membership>
</membership-modification>

Error Handling

CodeCause / Description
0x1006If the user is not a member of the group
0x100DIf the specified role is illegal
0x1014If the user attempts to deregister and register or change his role at the same time
0x6004If the member details have not been configured properly
Created on , last edited on