GET api/{database}/PersonRoleList?personId={personId}
Gets a list of PersonRole that matches the specified criteria
Request Information
Parameters
Name | Description | Additional information |
---|---|---|
personId | The personId. |
Define this parameter in the request URI. |
Response Information
Response body formats
application/json, text/json
Sample:
[ { "messages": [], "canChange": true, "cannotChangeReason": "sample string 2", "defaultPersonForRole": true, "departmentId": "sample string 4", "functionId": "sample string 5", "limit": 6.0, "limitPercentage": 7.0, "organizationId": 8, "personId": "sample string 9", "personRoleGuid": "sample string 10", "personRoleType": "sample string 11", "roleId": "sample string 12" }, { "messages": [], "canChange": true, "cannotChangeReason": "sample string 2", "defaultPersonForRole": true, "departmentId": "sample string 4", "functionId": "sample string 5", "limit": 6.0, "limitPercentage": 7.0, "organizationId": 8, "personId": "sample string 9", "personRoleGuid": "sample string 10", "personRoleType": "sample string 11", "roleId": "sample string 12" }, { "messages": [], "canChange": true, "cannotChangeReason": "sample string 2", "defaultPersonForRole": true, "departmentId": "sample string 4", "functionId": "sample string 5", "limit": 6.0, "limitPercentage": 7.0, "organizationId": 8, "personId": "sample string 9", "personRoleGuid": "sample string 10", "personRoleType": "sample string 11", "roleId": "sample string 12" } ]
application/xml, text/xml
Sample:
<ArrayOfPersonRole xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UNIT4.Multivers.API.BL.CRM.Edit"> <PersonRole> <CanChange>true</CanChange> <CannotChangeReason>sample string 2</CannotChangeReason> <DefaultPersonForRole>true</DefaultPersonForRole> <DepartmentId>sample string 4</DepartmentId> <FunctionId>sample string 5</FunctionId> <Limit>6</Limit> <LimitPercentage>7</LimitPercentage> <Messages xmlns:d3p1="http://schemas.datacontract.org/2004/07/UNIT4.Multivers.API.Web.WebApi.Core.Models" /> <OrganizationId>8</OrganizationId> <PersonId>sample string 9</PersonId> <PersonRoleGuid>sample string 10</PersonRoleGuid> <PersonRoleType>sample string 11</PersonRoleType> <RoleId>sample string 12</RoleId> </PersonRole> <PersonRole> <CanChange>true</CanChange> <CannotChangeReason>sample string 2</CannotChangeReason> <DefaultPersonForRole>true</DefaultPersonForRole> <DepartmentId>sample string 4</DepartmentId> <FunctionId>sample string 5</FunctionId> <Limit>6</Limit> <LimitPercentage>7</LimitPercentage> <Messages xmlns:d3p1="http://schemas.datacontract.org/2004/07/UNIT4.Multivers.API.Web.WebApi.Core.Models" /> <OrganizationId>8</OrganizationId> <PersonId>sample string 9</PersonId> <PersonRoleGuid>sample string 10</PersonRoleGuid> <PersonRoleType>sample string 11</PersonRoleType> <RoleId>sample string 12</RoleId> </PersonRole> <PersonRole> <CanChange>true</CanChange> <CannotChangeReason>sample string 2</CannotChangeReason> <DefaultPersonForRole>true</DefaultPersonForRole> <DepartmentId>sample string 4</DepartmentId> <FunctionId>sample string 5</FunctionId> <Limit>6</Limit> <LimitPercentage>7</LimitPercentage> <Messages xmlns:d3p1="http://schemas.datacontract.org/2004/07/UNIT4.Multivers.API.Web.WebApi.Core.Models" /> <OrganizationId>8</OrganizationId> <PersonId>sample string 9</PersonId> <PersonRoleGuid>sample string 10</PersonRoleGuid> <PersonRoleType>sample string 11</PersonRoleType> <RoleId>sample string 12</RoleId> </PersonRole> </ArrayOfPersonRole>