Previous page Create a new class  Clear the class (delete all images from the class) Next page

On the page:


General info

Method

POST /IP address:port/<api_ver>/class

DescriptionThe request is used to rename an existing class

Sample request

POST http://localhost:5000/v1.3/class
Content-Type: application/json
 
{
  "task_id": "6407bfd7144f37e141b786e2acf4faf2822cc48f296f5047e58c9e536874f4ec",
  "class_name": "Cars",
  "new_class_name": "Bikes"
}

where:

ParameterDescription
task_id

A unique identifier of the task (uid), to which the class belongs. It can be obtained using a task list query (see Get the list of tasks)

class_name

The name of the class

new_class_nameThe new name of the class

Sample response

{ "message": "Done" }

Response in case of error:

{ "error": "error description" }


  • No labels