POST | /spytec/behaviours/{imei} | Send A behavious to a device. |
---|
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Imei | path | string | Yes | The Imei of the GPS device. |
Name | body | string | Yes | The name of the behaviour. |
Parameters | body | Dictionary<string, object> | Yes | The Paramter of the behaviour with its values. |
HighPriority | body | boolean | Yes | The priority of the behaviour. |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Result | form | BehaviourTaskResult | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Success | form | bool | No | |
Message | form | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
TaskId | 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 /spytec/behaviours/{imei} HTTP/1.1
Host: api.paylock.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
imei: String,
name: String,
parameters:
{
String: {}
},
highPriority: False
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { result: { taskId: String }, success: False, message: String }