Create Usergroup

This method creates a new UserGroup. The client makes a POST request to server with parameter of CompanyID and LangID. The output will be either in json or xml format depending on the request type.

Name Value
REST-API METHOD CREATE USERGROUP
HTTP METHOD POST
RESPONSE TYPE XML
URL https://api.csm.next4biz.net/services/UserGroupService/{CompanyID}/usergroup.json/{LangID}https://api.csm.next4biz.net/services/UserGroupService/{CompanyID}/usergroup.xml/{LangID}
REQUEST HEAD Authorization: Basic {base64 encoded username:password} Accept: text/html,application/xhtml+json,application/json;q=0.9,*/*;q=0.8 Content-Type: application/jsonAuthorization: Basic {base64 encoded username:password} Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Content-Type: application/xml
  • XML
  • JSON
ENDPOINT DEFINITION
POST
REQUEST BODY
                                    
                                        <UserGroup>
	<BusinessChannelID>{BusinessChannelID}</BusinessChannelID>
	<CreatorID>{CreatorID}</CreatorID>
	<GroupContactMethodID>{GroupContactMethodID}</GroupContactMethodID>
	<GroupName>{GroupName}</GroupName>
	<IsActive>{IsActive}</IsActive>
	<ShortName>{ShortName}</ShortName>
</UserGroup>                                    
                                
                                                                        
                                        {
    "BusinessChannelID": "{BusinessChannelID}",
    "CreatorID": "{CreatorID}",
    "GroupContactMethodID": "{GroupContactMethodID}",
    "GroupName": "{GroupName}",
    "IsActive": "{IsActive}",
    "ShortName": "{ShortName}"
}                                    
                                                                    
RESPONSE BODY
                                    
                                        <Response
	xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
	<Message i:nil="true"/>
	<Result>{Result}</Result>
</Response>                                    
                                
                                                                        
                                        {
    "Message": {},
    "Result": "{Result}"
}