objects

Add body object

This method creates new body object. Body object is an object that contains source photo, thumbnail, and other attributes

post/objects/bodies/

Request body

create_fromstring

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_idstring

This parameter is left only for compatibility reasons. Do not use it.

mf_selector'biggest' | 'reject'
upload_listinteger

Add object to this upload list

source_photostring binary

Source photo (required when create_from points to a Detection or empty)

frame_coords_leftinteger

Left border of object's bounding box

frame_coords_topinteger

Top border of object's bounding box

frame_coords_rightinteger

Right border of object's bounding box

frame_coords_bottominteger

Bottom border of object's bounding box

activeboolean

true if object is enabled

cardinteger required

Related card ID

Response

idstring required
created_datestring date-time required

Object creation date

modified_datestring date-time required

Object modification date

source_photo_namestring required

Filename supplied for source_photo on object creation

frame_coords_leftinteger

Left border of object's bounding box

frame_coords_topinteger

Top border of object's bounding box

frame_coords_rightinteger

Right border of object's bounding box

frame_coords_bottominteger

Bottom border of object's bounding box

thumbnailstring uri required

Object thumbnail

activeboolean

true if object is enabled

featuresobject required
cardinteger required

Related card ID

Changes

No recorded changes to this endpoint across all 1 revision of this API.