| All Verbs | /api/datalists/ |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| LicenseeId | query | Guid? | No | Licensee requested Custom data lists belong to. |
| SearchText | query | string | No | Specific text to search for. |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Lists | form | List<ListModel> | No | |
| ResponseStatus | form | ResponseStatus | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ListId | form | Guid | No | |
| Name | form | string | No | |
| Description | form | string | No | |
| ShortName | form | string | No | |
| OwnerContactId | form | Guid | No | |
| IsStandard | form | bool | No | |
| RecordStatus | form | string | No | |
| DefaultListItemId | form | Guid | No | |
| DefaultListItemName | form | string | No | |
| HasImageForListItem | form | bool | No | |
| HasTrafficLightForListItem | form | bool | No | |
| ListItems | form | List<ListItemModel> | No | |
| PermissionEdit | form | bool | No | |
| PermissionAdd | form | bool | No | |
| PermissionDelete | form | bool | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ListItemId | form | Guid | No | |
| Name | form | string | No | |
| Description | form | string | No | |
| ShortName | form | string | No | |
| IsDefault | form | bool | No | |
| Order | form | int | No | |
| ListItemTrafficLightId | form | Guid | No | |
| PrimaryListItemImageId | form | Guid | No | |
| PrimaryListItemImageUrl | form | string | No | |
| PrimaryImageThumbnailUrl | form | string | No | |
| OwnerContactId | form | Guid | No | |
| RecordStatus | form | string | No |
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/datalists/ HTTP/1.1
Host: pfapi.pstpf.com.au
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
LicenseeId: 00000000000000000000000000000000,
SearchText: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Lists:
[
{
Name: String,
Description: String,
ShortName: String,
IsStandard: False,
RecordStatus: String,
DefaultListItemName: String,
HasImageForListItem: False,
HasTrafficLightForListItem: False,
ListItems:
[
{
Name: String,
Description: String,
ShortName: String,
IsDefault: False,
Order: 0,
PrimaryListItemImageUrl: String,
PrimaryImageThumbnailUrl: String,
RecordStatus: String
}
],
PermissionEdit: False,
PermissionAdd: False,
PermissionDelete: False
}
],
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
}
}