PST SDK
6.0.0.0-272350a
|
Set the id of the tracking Target.
POST /PSTapi/SetTargetId HTTP/1.1
Host: address:port
Key | Value Type | Description |
---|---|---|
TargetID | JSON Object | container for Target status information |
name | string | name of the target |
id | integer | set the id of the tracking target |
{"TargetID":{"name":"MyTargetName","id":8}}
Returns a status message.
Status Code | Content Example | Meaning |
---|---|---|
200 | {"message":"Target ID correctly set"} | Success message |
400 | {"message":"JSON_ERROR: <...>"} | An error occurred when parsing a JSON object |
400 | {"message":"TrackerException:MSG_MODEL_NOT_FOUND <...>"} | Requested Target could not be found |
500 | {"message":"TrackerException: <...>"} | An other type of internal error |