PST SDK  5.0.1.0-acae3ae
SetTargetId

Set the id of the tracking Target.

Endpoint
  
  POST /PSTapi/SetTargetId   HTTP/1.1
  Host: address:port
 
TargetID Object
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

POST Payload: Request body parameters example
 
  {"TargetID":{"name":"MyTargetName","id":8}}
 
Response

Returns a status message.

Verification table
Status Code Content Example Meaning
200 {"message":"Target ID correctly set"} Success message
400 {"message":"JSON_ERROR: <...>"} an error occured when parsing a json object
400 {"message":"TrackerException:MSG_MODEL_NOT_FOUND <...>"}
500 {"message":"TrackerException: <...>"} an other type of internal error