Previous page Next page
| Method | POST /IP address:port/<api_ver>/class |
| Description | The request is used to create a new class. When sending data, you can use two content types: multipart/form-data or application/json |
POST http://localhost:5000/v1.3/class
Content-Type: application/json
{
"task_id": "6407bfd7144f37e141b786e2acf4faf2822cc48f296f5047e58c9e536874f4ec",
"class_name": "Cars"
}
where:
| Parameter | Description |
|---|---|
| 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 new class |
{ "message": "Done" }
Response in case of error:
{ "error": "error description" }