| GET | /spytec/behaviours/supported | Get device behaviors definition for a device. |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Imei | query | string | Yes | The Imei of the GPS device. |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Result | form | List<BehaviourResultDef> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Success | form | bool | No | |
| Message | form | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Name | form | string | No | |
| Description | form | string | No | |
| Parameters | form | List<BehaviourParameterResult> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Name | form | string | No | |
| Type | 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.
GET /spytec/behaviours/supported HTTP/1.1 Host: api.paylock.com Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
result:
[
{
name: String,
description: String,
parameters:
[
{
name: String,
type: String
}
]
}
],
success: False,
message: String
}