---
title: "Add car object"
method: POST
path: "/objects/cars/"
tags: ["objects"]
---

# Add car object

`POST /objects/cars/`

This method creates new car object.
 **Car object** is an object that contains source photo, thumbnail, and other attributes

## Request body

- CarObjectRequest
  - `create_from` string — This field can contain one of the following references: - `detection:<detection id>`: use a `Detection` object (obtained with the `POST /detect`) to select a object on `source_photo`. (`source_photo` must contain the same image that was used for `POST /detect`) - `{face, body, or car}event:<event id>`: create new `Object` from an `Event` (`source_photo` must be empty) - `{face, body, or car}object:<object id>`: use another `Object` as a template for this object (`source_photo` must be empty)
  - `detect_id` string — *This parameter is left only for compatibility reasons. Do not use it.*
  - `mf_selector` 'biggest' | 'reject'
  - `upload_list` integer — Add object to this upload list
  - `source_photo` string, binary — Source photo (**required** when `create_from` points to a `Detection` or empty)
  - `frame_coords_left` integer — Left border of object's bounding box
  - `frame_coords_top` integer — Top border of object's bounding box
  - `frame_coords_right` integer — Right border of object's bounding box
  - `frame_coords_bottom` integer — Bottom border of object's bounding box
  - `active` boolean — `true` if object is enabled
  - `card` integer, required — Related `card` ID

## Response `201`

- CarObjectUpdate
  - `id` string, required
  - `created_date` string, date-time, required — Object creation date
  - `modified_date` string, date-time, required — Object modification date
  - `source_photo_name` string, required — Filename supplied for `source_photo` on object creation
  - `frame_coords_left` integer — Left border of object's bounding box
  - `frame_coords_top` integer — Top border of object's bounding box
  - `frame_coords_right` integer — Right border of object's bounding box
  - `frame_coords_bottom` integer — Bottom border of object's bounding box
  - `thumbnail` string, uri, required — Object thumbnail
  - `active` boolean — `true` if object is enabled
  - `features` object, required
  - `card` integer, required — Related `card` ID

---

[API](https://skmtc.dev/ntechlab/apis/internal-api-documentation.md) · [All operations](https://skmtc.dev/ntechlab/apis/internal-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ntechlab/internal-api-documentation/revisions/fe217a895bc7/schema)
