| All Verbs | /api/contactrolegroup/{ContactRoleGroupId} |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ContactRoleGroupId | query | Guid | Yes | The Contact Role Group Guid. Records retrieved will belong to this role group. |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ContactRoleGroup | form | RoleGroupModel | No | |
| ResponseStatus | form | ResponseStatus | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| RoleGroupId | form | Guid | No | Role Group Id |
| Name | form | string | No | Role Group Name |
| OwnerContactId | form | Guid | No | Owner Contact Id |
| NumberOfRoles | form | int | No | Number of Roles |
| Roles | form | List | No | Roles belonging to the Role Group |
| RecordStatus | form | string | No | 'A' (Active), 'I' (Inactive) |
| AllowEdit | query | bool | No | True if Licensee-owned, allowing editing, deleting, archiving |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| RoleId | form | Guid | No | Role Id |
| RoleName | form | string | No | Role Name |
| RoleGroupId | form | Guid | No | Role Group Id |
| RoleGroupName | form | string | No | Role Group Name |
| RoleGroupRoleId | form | Guid | No | Role Group Role Id |
| RecordStatus | form | string | No | 'A' (Active), 'I' (Inactive) |
| OwnerContactId | form | Guid | No | Owner 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
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /api/contactrolegroup/{ContactRoleGroupId} HTTP/1.1
Host: pfapi.pstpf.com.au
Accept: application/json
Content-Type: application/json
Content-Length: length
{"ContactRoleGroupId":"00000000-0000-0000-0000-000000000000"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"ContactRoleGroup":{"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},"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}