Get

[POST] .../v1/targettype/get

Returns target types. Use this method to populate target type selectors before creating targets with Target/Add. The response returns active target type records translated to the current user's language when translations are available and it does not perform permission-specific filtering because the values are public target dictionary data. Storage and translation loading errors are returned as HTTP 200 ErrorResult business errors.

Request Parameters

No request body.

Request Example

{}

Response Parameters

Name Type Description
ok Boolean Indicates whether the request completed successfully.
result Array of TargetType Result array.

Response Example

{
  "ok": true,
  "result": [
    {
      "id": 4,
      "name": "Sales amount",
      "name_key": "SALES_AMOUNT",
      "description": "Sales amount target",
      "last_update": 1712345600
    },
    {
      "id": 5,
      "name": "CRM won deal sales amount",
      "name_key": "CRM_DEAL_WON_AMOUNT",
      "description": "CRM won deal sales amount target",
      "last_update": 1712345600
    }
  ]
}