![]() |
PST SDK
5.1.0.0-e242fa9
|
Set status of a single tracking Target.
POST /PSTapi/SetTargetStatus HTTP/1.1
Host: address:port
| Key | Value Type | Description |
|---|---|---|
| TargetStatus | JSON Object | container for Target status information |
| name | string | name of the target |
| status | boolean | set the tracking status of a target to active(true) or inactive (false) |
{"TargetStatus":{"name":"MyTargetName","status":true}}
Returns a status message.
| Status Code | Content Example | Meaning |
|---|---|---|
| 200 | {"message":"Model Status correctly set"} | Success message |
| 400 | {"message":"JSON_ERROR: <...>"} | an error occurred when parsing a JSON object |
| 400 | {"message":"TrackerException:MSG_MODEL_NOT_FOUND <...>"} | |
| 500 | {"message":"TrackerException: <...>"} | an other type of internal error |