# Vehicle inspections

{% content-ref url="broken-reference" %}
[Broken link](https://docs-old.telematicssdk.com/platform-features/fnol-inspections-and-damage-recognition/broken-reference)
{% endcontent-ref %}

{% hint style="info" %}
**Note:** You have to [Create a Claim](https://docs-old.telematicssdk.com/platform-features/fnol-inspections-and-damage-recognition/claims-service) in order to attach Screens to it.
{% endhint %}

## Create a Screen

<mark style="color:green;">`POST`</mark> `https://insp.telematicssdk.com/api/v1/:claim_id/screens`

**Authorization:** Required with Token\
\
**Content Type:** application/form-data\
\
**Important:** You can create a screen if Claim's state is **Draft**, **Pending** or **Processing**

#### Path Parameters

| Name      | Type    | Description                         |
| --------- | ------- | ----------------------------------- |
| claim\_id | integer | Claim ID. Get it via /api/v1/claims |

#### Headers

| Name          | Type   | Description                                                               |
| ------------- | ------ | ------------------------------------------------------------------------- |
| Authorization | string | Token. Get it via <https://insp.telematicssdk.com/api/v1/profiles/login/> |

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

```
{
  "Result": {
    "Screen": {
      "Id": 0,
      "ScreenableId": 0,
      "ScreenableType": "string",
      "Front": {
        "Url": "string"
      },
      "Back": {
        "Url": "string"
      },
      "LeftFrontWing": {
        "Url": "string"
      },
      "LeftFrontDoor": {
        "Url": "string"
      },
      "LeftRearDoor": {
        "Url": "string"
      },
      "LeftRearWing": {
        "Url": "string"
      },
      "RightFrontWing": {
        "Url": "string"
      },
      "RightFrontDoor": {
        "Url": "string"
      },
      "RightRearDoor": {
        "Url": "string"
      },
      "RightRearWing": {
        "Url": "string"
      },
      "FrontLeftDiagonal": {
        "Url": "string"
      },
      "FrontRightDiagonal": {
        "Url": "string"
      },
      "BackLeftDiagonal": {
        "Url": "string"
      },
      "BackRightDiagonal": {
        "Url": "string"
      },
      "Windshield": {
        "Url": "string"
      },
      "Dashboard": {
        "Url": "string"
      },
      "Left": {
        "Url": "string"
      },
      "Right": {
        "Url": "string"
      },
      "CanQuotation": true,
      "CanEdit": true,
      "CreatedAt": "2020-10-20T18:00:31.095Z",
      "UpdatedAt": "2020-10-20T18:00:31.095Z",
      "Screenable": {
        "Id": 0,
        "Paint": "solid",
        "ClaimDateTime": "2020-10-20T18:00:31.095Z",
        "Description": "string",
        "Lat": "string",
        "Lng": "string",
        "DriverFirstName": "string",
        "DriverLastName": "string",
        "DriverPhone": "string",
        "DriverLicenseNo": "string",
        "InvolvedFirstName": "string",
        "InvolvedLastName": "string",
        "InvolvedLicenseNo": "string",
        "InvolvedVehicleLicenseplateno": "string",
        "VehicleMake": "string",
        "VehicleModel": "string",
        "VehicleLicenseplateno": "string",
        "CarToken": "string",
        "CarTowing": true,
        "CarDrivable": true,
        "CreatedAt": "2020-10-20T18:00:31.095Z",
        "UpdatedAt": "2020-10-20T18:00:31.095Z",
        "DriverName": "string",
        "InvolvedComments": "string",
        "Locations": "string",
        "State": "draft",
        "CanEdit": true,
      },
      "Quotes": [
        {
          "Id": 0,
          "ExternalId": "string",
          "ScreenId": 0,
          "CreatedAt": "2020-10-20T18:00:31.095Z"
        }
      ]
    }
  }
}
```

{% endtab %}
{% endtabs %}

**Request Body:** follow [Swagger](https://insp.telematicssdk.com/api-docs/index.html)

## Update a Screen

<mark style="color:orange;">`PUT`</mark> `https://insp.telematicssdk.com/api/v1/screens/:id`

**Authorization:** Required with Token\
\
**Content Type:** application/form-data\
\
**Important:** You can update a Screen only if it's **CanEdit == true** and Claim's state **is Draft, Pending** or **Processing**

#### Path Parameters

| Name | Type    | Description |
| ---- | ------- | ----------- |
| ID   | integer | Screen ID   |

#### Headers

| Name          | Type   | Description                                                               |
| ------------- | ------ | ------------------------------------------------------------------------- |
| Authorization | string | Token. Get it via <https://insp.telematicssdk.com/api/v1/profiles/login/> |

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

```
{
  "Result": {
    "Screen": {
      "Id": 0,
      "ScreenableId": 0,
      "ScreenableType": "string",
      "Front": {
        "Url": "string"
      },
      "Back": {
        "Url": "string"
      },
      "LeftFrontWing": {
        "Url": "string"
      },
      "LeftFrontDoor": {
        "Url": "string"
      },
      "LeftRearDoor": {
        "Url": "string"
      },
      "LeftRearWing": {
        "Url": "string"
      },
      "RightFrontWing": {
        "Url": "string"
      },
      "RightFrontDoor": {
        "Url": "string"
      },
      "RightRearDoor": {
        "Url": "string"
      },
      "RightRearWing": {
        "Url": "string"
      },
      "FrontLeftDiagonal": {
        "Url": "string"
      },
      "FrontRightDiagonal": {
        "Url": "string"
      },
      "BackLeftDiagonal": {
        "Url": "string"
      },
      "BackRightDiagonal": {
        "Url": "string"
      },
      "Windshield": {
        "Url": "string"
      },
      "Dashboard": {
        "Url": "string"
      },
      "Left": {
        "Url": "string"
      },
      "Right": {
        "Url": "string"
      },
      "CanQuotation": true,
      "CanEdit": true,
      "CreatedAt": "2020-10-20T18:00:31.095Z",
      "UpdatedAt": "2020-10-20T18:00:31.095Z",
      "Screenable": {
        "Id": 0,
        "Paint": "solid",
        "ClaimDateTime": "2020-10-20T18:00:31.095Z",
        "Description": "string",
        "Lat": "string",
        "Lng": "string",
        "DriverFirstName": "string",
        "DriverLastName": "string",
        "DriverPhone": "string",
        "DriverLicenseNo": "string",
        "InvolvedFirstName": "string",
        "InvolvedLastName": "string",
        "InvolvedLicenseNo": "string",
        "InvolvedVehicleLicenseplateno": "string",
        "VehicleMake": "string",
        "VehicleModel": "string",
        "VehicleLicenseplateno": "string",
        "CarToken": "string",
        "CarTowing": true,
        "CarDrivable": true,
        "CreatedAt": "2020-10-20T18:00:31.095Z",
        "UpdatedAt": "2020-10-20T18:00:31.095Z",
        "DriverName": "string",
        "InvolvedComments": "string",
        "Locations": "string",
        "State": "draft",
        "CanEdit": true,
      },
      "Quotes": [
        {
          "Id": 0,
          "ExternalId": "string",
          "ScreenId": 0,
          "CreatedAt": "2020-10-20T18:00:31.095Z"
        }
      ]
    }
  }
}
```

{% endtab %}
{% endtabs %}

**Request Body:** follow [Swagger](https://insp.telematicssdk.com/api-docs/index.html)

## Show a Screen

<mark style="color:blue;">`GET`</mark> `https://insp.telematicssdk.com/api/v1/screens/:id`

**Authorization:** Required with Token

#### Path Parameters

| Name | Type   | Description |
| ---- | ------ | ----------- |
| ID   | string | Screen ID   |

#### Headers

| Name          | Type   | Description                                                               |
| ------------- | ------ | ------------------------------------------------------------------------- |
| Authorization | string | Token. Get it via <https://insp.telematicssdk.com/api/v1/profiles/login/> |

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

```
{
  "Result": {
    "Screen": {
      "Id": 0,
      "ScreenableId": 0,
      "ScreenableType": "string",
      "Front": {
        "Url": "string"
      },
      "Back": {
        "Url": "string"
      },
      "LeftFrontWing": {
        "Url": "string"
      },
      "LeftFrontDoor": {
        "Url": "string"
      },
      "LeftRearDoor": {
        "Url": "string"
      },
      "LeftRearWing": {
        "Url": "string"
      },
      "RightFrontWing": {
        "Url": "string"
      },
      "RightFrontDoor": {
        "Url": "string"
      },
      "RightRearDoor": {
        "Url": "string"
      },
      "RightRearWing": {
        "Url": "string"
      },
      "FrontLeftDiagonal": {
        "Url": "string"
      },
      "FrontRightDiagonal": {
        "Url": "string"
      },
      "BackLeftDiagonal": {
        "Url": "string"
      },
      "BackRightDiagonal": {
        "Url": "string"
      },
      "Windshield": {
        "Url": "string"
      },
      "Dashboard": {
        "Url": "string"
      },
      "Left": {
        "Url": "string"
      },
      "Right": {
        "Url": "string"
      },
      "CanQuotation": true,
      "CanEdit": true,
      "CreatedAt": "2020-10-20T18:00:31.095Z",
      "UpdatedAt": "2020-10-20T18:00:31.095Z",
      "Screenable": {
        "Id": 0,
        "Paint": "solid",
        "ClaimDateTime": "2020-10-20T18:00:31.095Z",
        "Description": "string",
        "Lat": "string",
        "Lng": "string",
        "DriverFirstName": "string",
        "DriverLastName": "string",
        "DriverPhone": "string",
        "DriverLicenseNo": "string",
        "InvolvedFirstName": "string",
        "InvolvedLastName": "string",
        "InvolvedLicenseNo": "string",
        "InvolvedVehicleLicenseplateno": "string",
        "VehicleMake": "string",
        "VehicleModel": "string",
        "VehicleLicenseplateno": "string",
        "CarToken": "string",
        "CarTowing": true,
        "CarDrivable": true,
        "CreatedAt": "2020-10-20T18:00:31.095Z",
        "UpdatedAt": "2020-10-20T18:00:31.095Z",
        "DriverName": "string",
        "InvolvedComments": "string",
        "Locations": "string",
        "State": "draft",
        "CanEdit": true,
      },
      "Quotes": [
        {
          "Id": 0,
          "ExternalId": "string",
          "ScreenId": 0,
          "CreatedAt": "2020-10-20T18:00:31.095Z"
        }
      ]
    }
  }
}
```

{% endtab %}
{% endtabs %}

## Show Screens

<mark style="color:blue;">`GET`</mark> `https://insp.telematicssdk.com/api/v1/claims/:claim_id/screens`

**Authorization:** Required with Token

#### Path Parameters

| Name      | Type   | Description                         |
| --------- | ------ | ----------------------------------- |
| claim\_id | string | Claim ID. Get it via /api/v1/claims |

#### Headers

| Name          | Type   | Description                                                               |
| ------------- | ------ | ------------------------------------------------------------------------- |
| Authorization | string | Token. Get it via <https://insp.telematicssdk.com/api/v1/profiles/login/> |

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

```
{
  "Result": {
    "Screens": [
      {
        "Id": 0,
        "ScreenableId": 0,
        "ScreenableType": "string",
        "Front": {
          "Url": "string"
        },
        "Back": {
          "Url": "string"
        },
        "LeftFrontWing": {
          "Url": "string"
        },
        "LeftFrontDoor": {
          "Url": "string"
        },
        "LeftRearDoor": {
          "Url": "string"
        },
        "LeftRearWing": {
          "Url": "string"
        },
        "RightFrontWing": {
          "Url": "string"
        },
        "RightFrontDoor": {
          "Url": "string"
        },
        "RightRearDoor": {
          "Url": "string"
        },
        "RightRearWing": {
          "Url": "string"
        },
        "FrontLeftDiagonal": {
          "Url": "string"
        },
        "FrontRightDiagonal": {
          "Url": "string"
        },
        "BackLeftDiagonal": {
          "Url": "string"
        },
        "BackRightDiagonal": {
          "Url": "string"
        },
        "Windshield": {
          "Url": "string"
        },
        "Dashboard": {
          "Url": "string"
        },
        "Left": {
          "Url": "string"
        },
        "Right": {
          "Url": "string"
        },
        "CanQuotation": true,
        "CanEdit": true,
        "CreatedAt": "2020-10-20T18:50:29.514Z",
        "UpdatedAt": "2020-10-20T18:50:29.514Z",
        "Screenable": {
          "Id": 0,
          "Paint": "solid",
          "ClaimDateTime": "2020-10-20T18:50:29.514Z",
          "Description": "string",
          "Lat": "string",
          "Lng": "string",
          "DriverFirstName": "string",
          "DriverLastName": "string",
          "DriverPhone": "string",
          "DriverLicenseNo": "string",
          "InvolvedFirstName": "string",
          "InvolvedLastName": "string",
          "InvolvedLicenseNo": "string",
          "InvolvedVehicleLicenseplateno": "string",
          "VehicleMake": "string",
          "VehicleModel": "string",
          "VehicleLicenseplateno": "string",
          "CarToken": "string",
          "CarTowing": true,
          "CarDrivable": true,
          "CreatedAt": "2020-10-20T18:50:29.514Z",
          "UpdatedAt": "2020-10-20T18:50:29.514Z",
          "DriverName": "string",
          "InvolvedComments": "string",
          "Locations": "string",
          "State": "draft",
          "CanEdit": true,
        },
        "Quotes": [
          {
            "Id": 0,
            "ExternalId": "string",
            "ScreenId": 0,
            "CreatedAt": "2020-10-20T18:50:29.514Z"
          }
        ]
      }
    ]
  }
}
```

{% endtab %}
{% endtabs %}
