Platform API

<back to all web services

GetRolesForContact

Get roles for the specified contact

Requires Authentication
The following routes are available for this service:
All Verbs/api/roles/{ContactId}
All Verbs/api/resourceroles/available/{ContactId}
All Verbs/api/resourceroles/licensee/{RoleListItemFilterId}
All Verbs/api/resourceroles/licensee
All Verbs/api/licenseeroles/{ContactId}
GetRolesForContact Parameters:
NameParameterData TypeRequiredDescription
ContactIdpathGuidYesGet roles (custom and standard roles) for the specified contact
RoleListItemFilterIdpathGuidYesList Item Filter to use on the roles. Applicable to route /resourceroles/licensee/{RoleListItemFilter}
GetRolesResponse Parameters:
NameParameterData TypeRequiredDescription
RolesformList<RoleModel>No
ResponseStatusformResponseStatusNo
RoleModel Parameters:
NameParameterData TypeRequiredDescription
RoleIdformGuidYesRole Id
RoleNameformstringNoRole Name
IsLicenseeRoleformboolNoIs the role a licensee role?
IsManageContactsformboolNoIs manage contacts role?
IsPlatformRoleformboolNoIs the role a Platform role?
IsServiceRoleformboolNoIs the role a services role?
IsCustomerRoleformboolNoIs the role a customer role?
IsFunctionalRoleformboolNoIs the role a functional role?
IsRequestAutoAcceptedformboolNoIs the role an auto-accept role?
SuiteIdformGuidNoSuite that the role belongs to
SuiteNameformstringNoSuite that the role belongs to
RecordStatusformstringNo'A' (Active) or 'I' (Inactive)
ObjectConnectionIdformGuidNoObject Connection Id, which is populated when the roles are returned based on those that are connected to an object.

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

HTTP + OTHER

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

POST /api/roles/{ContactId} HTTP/1.1 
Host: pfapi.pstpf.com.au 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"ContactId":"00000000-0000-0000-0000-000000000000","RoleListItemFilterId":"00000000-0000-0000-0000-000000000000"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"Roles":[{"RoleId":"00000000-0000-0000-0000-000000000000","RoleName":"String","IsLicenseeRole":false,"IsManageContacts":false,"IsPlatformRole":false,"IsServiceRole":false,"IsCustomerRole":false,"IsFunctionalRole":false,"IsRequestAutoAccepted":false,"SuiteId":"00000000-0000-0000-0000-000000000000","SuiteName":"String","RecordStatus":"String","ObjectConnectionId":"00000000-0000-0000-0000-000000000000"}],"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}