# Track Statuses

## Statuses

| Status  | Description                                                                                                 |
| ------- | ----------------------------------------------------------------------------------------------------------- |
| Draft   | received and processed track but without risk & eco scores yet                                              |
| Active  | processed track which is participating in user's risk & eco scores calculation                              |
| Deleted | processed track which is **not** participating in user's risk & eco scores calculation                      |
| Hidden  | processed track which is participating in user's risk & eco scores calculation but can be not shown to user |

## Get track status dictionary

<mark style="color:blue;">`GET`</mark> `https://mobilesdk.telematicssdk.com/mobilesdk/stage/track/statuses/v1/get`

**Authorization:** DeviceToken in Header

#### Headers

| Name        | Type   | Description        |
| ----------- | ------ | ------------------ |
| DeviceToken | string | DeviceToken (GUID) |

{% tabs %}
{% tab title="200 " %}

```
{
  "Result": {
    "Statuses": [
      {
        "DisplayName": "Unknown",
        "Code": "Unknown"
      },
      {
        "DisplayName": "Draft",
        "Code": "Draft"
      },
      {
        "DisplayName": "Active",
        "Code": "Active"
      },
      {
        "DisplayName": "Deleted",
        "Code": "Deleted"
      },
      {
        "DisplayName": "Hidden",
        "Code": "Hidden"
      }
    ],
    "Code": 200
  }
}
```

{% endtab %}
{% endtabs %}

## Set Active Status

<mark style="color:green;">`POST`</mark> `https://mobilesdk.telematicssdk.com/mobilesdk/stage/track/{trackToken}/setactive/v1`

**Authorization:** DeviceToken in Header

#### Headers

| Name        | Type   | Description                                   |
| ----------- | ------ | --------------------------------------------- |
| DeviceToken | string | DeviceToken (GUID), which recorded this track |

{% tabs %}
{% tab title="200 " %}

```
{
    "Result": {
        "Code": 200
    }
}
```

{% endtab %}
{% endtabs %}

## Set Deleted Status

<mark style="color:green;">`POST`</mark> `https://mobilesdk.telematicssdk.com/mobilesdk/stage/track/{trackToken}/setdeleted/v1`

**Authorization:** DeviceToken in Header

#### Headers

| Name        | Type   | Description                                   |
| ----------- | ------ | --------------------------------------------- |
| DeviceToken | string | DeviceToken (GUID), which recorded this track |

{% tabs %}
{% tab title="200 " %}

```
{
    "Result": {
        "Code": 200
    }
}
```

{% endtab %}
{% endtabs %}

## Set Hidden Status

<mark style="color:green;">`POST`</mark> `https://mobilesdk.telematicssdk.com/mobilesdk/stage/track/{trackToken}/sethidden/v1`

**Authorization:** DeviceToken in Header

#### Headers

| Name        | Type   | Description                                   |
| ----------- | ------ | --------------------------------------------- |
| DeviceToken | string | DeviceToken (GUID), which recorded this track |

{% tabs %}
{% tab title="200 " %}

```
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs-old.telematicssdk.com/user-statistics-and-analytics/processed-data/track-statuses.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
