PST SDK  5.2.0.0-0eac0f6
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 occurred when parsing a JSON object
400 {"message":"TrackerException:MSG_MODEL_NOT_FOUND <...>"} The model provided in the query has not been found in the database
500 {"message":"TrackerException: <...>"} An other type of internal error