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 .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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: application/json
Content-Type: application/json
Content-Length: length

{"LicenseeId":"00000000-0000-0000-0000-000000000000","Name":"String","RecordStatus":"String","PageNumber":0,"PageSize":0,"SortIndex":0,"SortOrder":"Ascending"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"RoleGroups":[{"RoleGroupId":"00000000-0000-0000-0000-000000000000","Name":"String","OwnerContactId":"00000000-0000-0000-0000-000000000000","NumberOfRoles":0,"Roles":[{"RoleId":"00000000-0000-0000-0000-000000000000","RoleName":"String","RoleGroupId":"00000000-0000-0000-0000-000000000000","RoleGroupName":"String","RoleGroupRoleId":"00000000-0000-0000-0000-000000000000","RecordStatus":"String","OwnerContactId":"00000000-0000-0000-0000-000000000000"}],"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"}}}