Add label

POST {{ask-filerobot-server}}/images/matcher/label/add?type=face

Creates a new label associated with a classifier.

Accepted data:

  • classifier_id - ID of the classifier to which the new label will be attached. Should exist for the given token.

  • label_name - Name of the label to be created. Should be unique for the given classifier ID.

Request Params

KeyDatatypeRequiredDescription
typestringThe type of objects that will be matched

Request Body

{"classifier_id"=>4, "label_name"=>"label_name"}

HEADERS

KeyDatatypeRequiredDescription
Filerobot-Tokenstring
Filerobot-Keystring

RESPONSES

status: Created

{"status":"success","version":"3.2.2","token":"fdocs","request_uuid":"d38cf99a-aabe-4f25-8622-437de6505930","operation":"add_label","add_label":{"name":"label_name","id":4}}