create
- Home
- Users & Groups
- Group
- create
create
Creates a group with specified paramaters
Parameters
| Name | Description |
| group_name required | Group Name |
| user_id required | Owner ID |
| subdir optional | Subdir |
| display_name optional | Display Name |
| join_method optional | Join Method |
| forum_access optional | Forum Access |
| desc_full optional | Full Description |
| desc_small optional | Brief Description |
| group_access optional | Group Access |
| allow_member_content_association optional | Allow Member Content Association |
Request Syntax
| https://services.onesite.com/1/group/create.json?group_name=Fans&user_id=229928503&subdir=demo_fans&display_name=The Fans&join_method=open&forum_access=outside_post&desc_full=A group for demo fans.&desc_small=Welcome to The Fans Group!&group_access=public&allow_member_content_association=allow&devkey=[devkey] |
JSON Response
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
{ "code":100, "message":"Successfully created group.", "content":{ "group":{ "GroupID":1000813, "BlogID":"234768041", "Node":"188234", "Owner":229928503, "Name":"Fans", "Domain":"onesitedemo.com", "Subdir":"demo_fans", "DisplayName":"The Fans", "DescFull":"A group for demo fans.", "DescSmall":"Welcome to The Fans Group!", "JoinMethod":"open", "ForumAccess":"outside_post", "Featured":0, "DateAdded":"1550598367", "GroupAccess":"public", "AllowMemberContentAssociation":"allow", "MasterCategory":"0", "CategoryID":"0", "Status":"active", "MemberCount":1, "DateUpdated":"2019-02-19 11:46:07" } } } |
Service Information
| Service | group |
| Method | create |
| Type | REST |
| Response Types | JSON, XML |