| All Verbs | /api/roles/connection/{FromContactId} |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| FromContactId | path | Guid | Yes | Get roles available for connection from this contact |
| ContactId | query | Guid? | No | Get roles available for connection to this contact |
| ContactTypeId | query | Guid | Yes | Get roles available for connection for the specified contact type |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Roles | form | List<RoleModel> | No | |
| ResponseStatus | form | ResponseStatus | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| RoleId | form | Guid | Yes | Role Id |
| RoleName | form | string | No | Role Name |
| IsLicenseeRole | form | bool | No | Is the role a licensee role? |
| IsManageContacts | form | bool | No | Is manage contacts role? |
| IsPlatformRole | form | bool | No | Is the role a Platform role? |
| IsServiceRole | form | bool | No | Is the role a services role? |
| IsCustomerRole | form | bool | No | Is the role a customer role? |
| IsFunctionalRole | form | bool | No | Is the role a functional role? |
| IsRequestAutoAccepted | form | bool | No | Is the role an auto-accept role? |
| SuiteId | form | Guid | No | Suite that the role belongs to |
| SuiteName | form | string | No | Suite that the role belongs to |
| RecordStatus | form | string | No | 'A' (Active) or 'I' (Inactive) |
| ObjectConnectionId | form | Guid | No | Object 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 .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /api/roles/connection/{FromContactId} HTTP/1.1
Host: pfapi.pstpf.com.au
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
ContactId: 00000000000000000000000000000000
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Roles:
[
{
RoleName: String,
IsLicenseeRole: False,
IsManageContacts: False,
IsPlatformRole: False,
IsServiceRole: False,
IsCustomerRole: False,
IsFunctionalRole: False,
IsRequestAutoAccepted: False,
SuiteName: String,
RecordStatus: String
}
],
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
}
}