PST SDK  5.0.1.0-acae3ae
GetTargetStatus

Retrieves the status of a single tracking Target. Tracking targets can be either active (true) or inactive (false).

Endpoint
  
  GET /PSTapi/GetTargetStatus HTTP/1.1
  Query string parameter: target name
  Host: address:port
 
Get Request example
 
  http://localhost:7278/PSTapi/GetTargetStatus?MyTargetName
 
Response

Returns the target status, either active (true) or inactive (false).

TargetStatus Object
Key Value Type Description
TargetStatus boolean active (true) or inactive (false)
Example
 
  {"TargetStatus":true}
 
Verification table
Status Code Content Example Meaning
200 Json payload Success message
400 {"message":"JSON_ERROR: <...>"} an error occured when parsing a json object
400 {"message":"TrackerException:MSG_MODEL_NOT_FOUND <...>"} the model provided in the querry has not been found in the database
500 {"message":"TrackerException: <...>"} an other type of internal error