Platform API

<back to all web services

GetContactRoleGroups

Get role groups for the given criteria

Requires Authentication
The following routes are available for this service:
All Verbs/api/contactrolegroups/{LicenseeId}
GetContactRoleGroups Parameters:
NameParameterData TypeRequiredDescription
LicenseeIdqueryGuidYesGet contact role groups for the specified licensee
NamequerystringNoRole Group Name
RecordStatusquerystringNoActive/Archived filter
PagedModel Parameters:
NameParameterData TypeRequiredDescription
PageNumberformintNoPage Number to retrieve
PageSizeformintNoNumber of records to retrieve
SortIndexformintNoIndex of field to sort results by
SortOrderformintNoSort Order - Ascending or Descending
SortOrder Enum:
Ascending
Descending
GetContactRoleGroupsResponse Parameters:
NameParameterData TypeRequiredDescription
RoleGroupsformList<RoleGroupModel>No
TotalRoleGroupsformintNo
ResponseStatusformResponseStatusNo
RoleGroupModel Parameters:
NameParameterData TypeRequiredDescription
RoleGroupIdformGuidNoRole Group Id
NameformstringNoRole Group Name
OwnerContactIdformGuidNoOwner Contact Id
NumberOfRolesformintNoNumber of Roles
RolesformListNoRoles belonging to the Role Group
RecordStatusformstringNo'A' (Active), 'I' (Inactive)
AllowEditqueryboolNoTrue if Licensee-owned, allowing editing, deleting, archiving
RoleGroupRolesModel Parameters:
NameParameterData TypeRequiredDescription
RoleIdformGuidNoRole Id
RoleNameformstringNoRole Name
RoleGroupIdformGuidNoRole Group Id
RoleGroupNameformstringNoRole Group Name
RoleGroupRoleIdformGuidNoRole Group Role Id
RecordStatusformstringNo'A' (Active), 'I' (Inactive)
OwnerContactIdformGuidNoOwner Contact Id

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /api/contactrolegroups/{LicenseeId} HTTP/1.1 
Host: pfapi.pstpf.com.au 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	Name: String,
	RecordStatus: String,
	PageNumber: 0,
	PageSize: 0,
	SortIndex: 0,
	SortOrder: Ascending
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	RoleGroups: 
	[
		{
			Name: String,
			NumberOfRoles: 0,
			Roles: 
			[
				{
					RoleName: String,
					RoleGroupName: String,
					RecordStatus: String
				}
			],
			RecordStatus: String,
			AllowEdit: False
		}
	],
	TotalRoleGroups: 0,
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	}
}