| All Verbs | /api/roles/{RoleId}/associatedroles/safetystaff | ||
|---|---|---|---|
| All Verbs | /api/roles/{RoleId}/associatedroles/organisation |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| RoleId | query | Guid | Yes | The Role Guid. Records retrieved will belong to this role. |
| 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 .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/roles/{RoleId}/associatedroles/safetystaff HTTP/1.1
Host: pfapi.pstpf.com.au
Accept: application/json
Content-Type: application/json
Content-Length: length
{"RoleId":"00000000-0000-0000-0000-000000000000"}
HTTP/1.1 200 OK
Content-Type: application/json
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"}}}