Class TasksApi

TasksApi - object-oriented interface

Export

Hierarchy

  • BaseAPI
    • TasksApi

Constructors

  • Parameters

    • Optional configuration: Configuration
    • basePath: string = BASE_PATH
    • axios: AxiosInstance = globalAxios

    Returns TasksApi

Properties

axios: AxiosInstance = globalAxios
basePath: string = BASE_PATH
configuration: undefined | Configuration

Methods

  • Parameters

    Returns Promise<AxiosResponse<DataMetaRead, any>>

    Summary

    Method provides a meta information about media files which are related with the job

    Throws

    Memberof

    TasksApi

  • Parameters

    • requestParameters: TasksApiTasksCreateRequest

      Request parameters.

    • Optional options: AxiosRequestConfig<any>

      Override http request option.

    Returns Promise<AxiosResponse<TaskRead, any>>

    Summary

    Method creates a new task in a database without any attached images and videos

    Throws

    Memberof

    TasksApi

  • The request POST /api/tasks/id/annotations will initiate file upload and will create the rq job on the server in which the process of annotations uploading from file will be carried out. Please, use the PUT /api/tasks/id/annotations endpoint for checking status of the process.

    Parameters

    Returns Promise<AxiosResponse<void, any>>

    Summary

    Method allows to initialize the process of upload task annotations from a local or a cloud storage file

    Throws

    Memberof

    TasksApi

  • The backup import process is as follows: The first request POST /api/tasks/backup will initiate file upload and will create the rq job on the server in which the process of a task creating from an uploaded backup will be carried out. After initiating the backup upload, you will receive an rq_id parameter. Make sure to include this parameter as a query parameter in your subsequent requests to track the status of the task creation. Once the task has been successfully created, the server will return the id of the newly created task.

    Parameters

    Returns Promise<AxiosResponse<void, any>>

    Summary

    Method recreates a task from an attached task backup file

    Throws

    Memberof

    TasksApi

  • Allows to upload data to a task. Supports the TUS open file uploading protocol (https://tus.io/). Supports the following protocols: 1. A single Data request and 2.1. An Upload-Start request 2.2.a. Regular TUS protocol requests (Upload-Length + Chunks) 2.2.b. Upload-Multiple requests 2.3. An Upload-Finish request Requests: - Data - POST, no extra headers or 'Upload-Start' + 'Upload-Finish' headers. Contains data in the body. - Upload-Start - POST, has an 'Upload-Start' header. No body is expected. - Upload-Length - POST, has an 'Upload-Length' header (see the TUS specification) - Chunk - HEAD/PATCH (see the TUS specification). Sent to /data/ endpoints. - Upload-Finish - POST, has an 'Upload-Finish' header. Can contain data in the body. - Upload-Multiple - POST, has an 'Upload-Multiple' header. Contains data in the body. The 'Upload-Finish' request allows to specify the uploaded files should be ordered. This may be needed if the files can be sent unordered. To state that the input files are sent ordered, pass an empty list of files in the 'upload_file_order' field. If the files are sent unordered, the ordered file list is expected in the 'upload_file_order' field. It must be a list of string file paths, relative to the dataset root. Example: files = [ "cats/cat_1.jpg", "dogs/dog2.jpg", "image_3.png", ... ] Independently of the file declaration field used ('client_files', 'server_files', etc.), when the 'predefined' sorting method is selected, the uploaded files will be ordered according to the '.jsonl' manifest file, if it is found in the list of files. For archives (e.g. '.zip'), a manifest file ('*.jsonl') is required when using the 'predefined' file ordering. Such file must be provided next to the archive in the list of files. Read more about manifest files here: https://opencv.github.io/cvat/docs/manual/advanced/dataset_manifest/ After all data is sent, the operation status can be retrieved via the /status endpoint.

    Parameters

    Returns Promise<AxiosResponse<void, any>>

    Summary

    Method permanently attaches data (images, video, etc.) to a task

    Throws

    Memberof

    TasksApi

  • Parameters

    • requestParameters: TasksApiTasksDestroyRequest

      Request parameters.

    • Optional options: AxiosRequestConfig<any>

      Override http request option.

    Returns Promise<AxiosResponse<void, any>>

    Summary

    Method deletes a specific task, all attached jobs, annotations, and data

    Throws

    Memberof

    TasksApi

  • Parameters

    Returns Promise<AxiosResponse<void, any>>

    Summary

    Method deletes all annotations for a specific task

    Throws

    Memberof

    TasksApi

  • Parameters

    Returns Promise<AxiosResponse<TaskRead, any>>

    Summary

    Methods does a partial update of chosen fields in a task

    Throws

    Memberof

    TasksApi

  • Parameters

    Returns Promise<AxiosResponse<DataMetaRead, any>>

    Summary

    Method provides a meta information about media files which are related with the task

    Throws

    Memberof

    TasksApi

  • Parameters

    • requestParameters: TasksApiTasksRetrieveRequest

      Request parameters.

    • Optional options: AxiosRequestConfig<any>

      Override http request option.

    Returns Promise<AxiosResponse<TaskRead, any>>

    Summary

    Method returns details of a specific task

    Throws

    Memberof

    TasksApi

  • Parameters

    Returns Promise<AxiosResponse<void, any>>

    Summary

    Method backup a specified task

    Throws

    Memberof

    TasksApi

  • Parameters

    Returns Promise<AxiosResponse<void, any>>

    Summary

    Method returns data for a specific task

    Throws

    Memberof

    TasksApi

  • Parameters

    Returns Promise<AxiosResponse<DataMetaRead, any>>

    Summary

    Method provides a meta information about media files which are related with the task

    Throws

    Memberof

    TasksApi

  • Parameters

    Returns Promise<AxiosResponse<File, any>>

    Summary

    Export task as a dataset in a specific format

    Throws

    Memberof

    TasksApi

  • Parameters

    Returns Promise<AxiosResponse<void, any>>

    Summary

    Method returns a preview image for the task

    Throws

    Memberof

    TasksApi

  • Parameters

    Returns Promise<AxiosResponse<RqStatus, any>>

    Summary

    When task is being created the method returns information about a status of the creation process

    Throws

    Memberof

    TasksApi

  • To check the status of the process of uploading a task annotations from a file: After initiating the annotations upload, you will receive an rq_id parameter. Make sure to include this parameter as a query parameter in your subsequent PUT /api/tasks/id/annotations requests to track the status of the annotations upload.

    Parameters

    Returns Promise<AxiosResponse<void, any>>

    Summary

    Method allows to upload task annotations or edit existing annotations

    Throws

    Memberof

    TasksApi

Generated using TypeDoc