Home / API / ASP.NET Web API Details

GET api/v1/Setup/GetTargetByTargetTypeId?targettypeid={targettypeid}

Description

Get Target Info By Target Type Id

Request Information

Parameters

NameDescriptionAdditional information
targettypeid
Target Type Id

Define this parameter in the request URI.

Response Information

Target Information

Response body formats

application/json, text/json

Sample:
{
  "targettypeid": 1,
  "companyid": 2,
  "sortval": 3,
  "isactive": true,
  "utctimestamp": "2025-02-23T06:21:16.0070781+00:00",
  "createdby": "sample string 6",
  "lastchanged": "2025-02-23T06:21:16.0070781+00:00",
  "lastchangedby": "sample string 8",
  "threshold": 9,
  "iscallagentitem": true,
  "targetname": {
    "targettypeid": 1,
    "targetname": "sample string 2",
    "createdby": "sample string 3",
    "utctimestamp": "2025-02-23T06:21:16.0070781+00:00",
    "utclastchanged": "2025-02-23T06:21:16.0075963+00:00",
    "lastchangedby": "sample string 6",
    "warranty": "sample string 7"
  }
}

application/xml, text/xml

Sample:
<setuptargetmodel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APICOMMON">
  <companyid>2</companyid>
  <createdby>sample string 6</createdby>
  <isactive>true</isactive>
  <iscallagentitem>true</iscallagentitem>
  <lastchanged>2025-02-23T06:21:16.0070781+00:00</lastchanged>
  <lastchangedby>sample string 8</lastchangedby>
  <sortval>3</sortval>
  <targetname>
    <createdby>sample string 3</createdby>
    <lastchangedby>sample string 6</lastchangedby>
    <targetname>sample string 2</targetname>
    <targettypeid>1</targettypeid>
    <utclastchanged>2025-02-23T06:21:16.0075963+00:00</utclastchanged>
    <utctimestamp>2025-02-23T06:21:16.0070781+00:00</utctimestamp>
    <warranty>sample string 7</warranty>
  </targetname>
  <targettypeid>1</targettypeid>
  <threshold>9</threshold>
  <utctimestamp>2025-02-23T06:21:16.0070781+00:00</utctimestamp>
</setuptargetmodel>