# 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 %}
