CMS Tool API

CMS Tool API schema

Public API version 1.4.10.

Member Group

Group members/customers, each member can belong to unlimited groups. Groups can contain groups

Endpoint URL

https://api.cms-tool.net/api/membergroups

/api/membergroups

Read and update member groups.

GET

List records, or retrieve one by appending its ID to the path.

Query parameters

NameTypeExampleNotes
idint123Filter results by id.
grouptextexampleFilter results by group.
userSelectablebooleantrueFilter results by user selectable. Accepts true or 1.
offsetint123Skip this many matching records before returning results.
pageSizeint123Limit the number of records returned.

POST

Create or update a record from a JSON object.

Request content type: application/json

Request body fields

NameTypeExampleNotes
idint123Set the id value.
mbr_grouptextexampleSet the mbr group value.
mbr_group_user_selectablebooleantrueSet the mbr group user selectable value. Accepts true or 1.

Data definitions

FieldTypeDescriptionFormatExample
mbr_group_count_membersintCount of members in this group (readonly)
mbr_group_parentintID of a parent group in a nested group heirachy
mbr_grouptextThe name of this member group
mbr_groupidserialSystem generated group ID (readonly, primary ID)123456

Usage instructions and examples

View your member groups

Use the member groups endpoint with GET method to get all the member groups.

{ 
   "id":123,

"cid": 111,

"mbr_group": "Special Members",

"mbr_group_count_members": "20",

"mbr_group_user_selectable": "t"

}
   ...

Create new member group

To create a new entry use POST method. Do not provide the id to create a new group.

Example:

{

"mbr_group": "New Special Members",

"mbr_group_count_members": "20",

"mbr_group_user_selectable": "t"

}
            

Update a member group

To update a group please provide the id of the group you wish to update. Rest of the information will be used to update the group. The member group count can not be updated without adding the members to the group first.

Example:

{

   "id": 1234,

   "mbr_group": "New Special Members",

   "mbr_group_user_selectable": "t"

}

Sample object

       {

           "mbr_group_count_members": 7,

           "mbr_group": "Developers",

           "mbr_group_user_selectable": "f",

           "id": 23958,

           "cid": 1234

       }

Machine-readable documentation

This documentation is also available as JSON or Markdown at the same URL. Request JSON with Accept: application/json or Markdown with Accept: text/markdown.