Function TasksApiAxiosParamCreator

TasksApi - axios parameter creator

  • Parameters

    Returns {
        tasksCreate: (
            taskWriteRequest: TaskWriteRequest,
            xOrganization?: string,
            org?: string,
            orgId?: number,
            options?: RawAxiosRequestConfig,
        ) => Promise<RequestArgs>;
        tasksCreateAnnotations: (
            id: number,
            cloudStorageId?: number,
            filename?: string,
            format?: string,
            location?: TasksCreateAnnotationsLocationEnum,
            useDefaultLocation?: boolean,
            taskAnnotationsWriteRequest?: null | AnnotationFileRequest,
            options?: RawAxiosRequestConfig,
        ) => Promise<RequestArgs>;
        tasksCreateBackup: (
            xOrganization?: string,
            cloudStorageId?: number,
            filename?: string,
            location?: TasksCreateBackupLocationEnum,
            org?: string,
            orgId?: number,
            rqId?: string,
            taskFileRequest?: TaskFileRequest,
            options?: RawAxiosRequestConfig,
        ) => Promise<RequestArgs>;
        tasksCreateBackupExport: (
            id: number,
            cloudStorageId?: number,
            filename?: string,
            location?: TasksCreateBackupExportLocationEnum,
            options?: RawAxiosRequestConfig,
        ) => Promise<RequestArgs>;
        tasksCreateData: (
            id: number,
            uploadFinish?: boolean,
            uploadMultiple?: boolean,
            uploadStart?: boolean,
            dataRequest?: DataRequest,
            options?: RawAxiosRequestConfig,
        ) => Promise<RequestArgs>;
        tasksCreateDatasetExport: (
            format: string,
            id: number,
            cloudStorageId?: number,
            filename?: string,
            location?: TasksCreateDatasetExportLocationEnum,
            saveImages?: boolean,
            options?: RawAxiosRequestConfig,
        ) => Promise<RequestArgs>;
        tasksDestroy: (
            id: number,
            options?: RawAxiosRequestConfig,
        ) => Promise<RequestArgs>;
        tasksDestroyAnnotations: (
            id: number,
            options?: RawAxiosRequestConfig,
        ) => Promise<RequestArgs>;
        tasksList: (
            xOrganization?: string,
            assignee?: string,
            dimension?: TasksListDimensionEnum,
            filter?: string,
            mode?: string,
            name?: string,
            org?: string,
            orgId?: number,
            owner?: string,
            page?: number,
            pageSize?: number,
            projectId?: number,
            projectName?: string,
            search?: string,
            sort?: string,
            status?: TasksListStatusEnum,
            subset?: string,
            trackerLink?: string,
            validationMode?: TasksListValidationModeEnum,
            options?: RawAxiosRequestConfig,
        ) => Promise<RequestArgs>;
        tasksPartialUpdate: (
            id: number,
            patchedTaskWriteRequest?: PatchedTaskWriteRequest,
            options?: RawAxiosRequestConfig,
        ) => Promise<RequestArgs>;
        tasksPartialUpdateAnnotations: (
            action: TasksPartialUpdateAnnotationsActionEnum,
            id: number,
            patchedLabeledDataRequest?: PatchedLabeledDataRequest,
            options?: RawAxiosRequestConfig,
        ) => Promise<RequestArgs>;
        tasksPartialUpdateDataMeta: (
            id: number,
            patchedDataMetaWriteRequest?: PatchedDataMetaWriteRequest,
            options?: RawAxiosRequestConfig,
        ) => Promise<RequestArgs>;
        tasksPartialUpdateValidationLayout: (
            id: number,
            patchedTaskValidationLayoutWriteRequest?: PatchedTaskValidationLayoutWriteRequest,
            options?: RawAxiosRequestConfig,
        ) => Promise<RequestArgs>;
        tasksRetrieve: (
            id: number,
            options?: RawAxiosRequestConfig,
        ) => Promise<RequestArgs>;
        tasksRetrieveAnnotations: (
            id: number,
            action?: "download",
            cloudStorageId?: number,
            filename?: string,
            format?: string,
            location?: TasksRetrieveAnnotationsLocationEnum,
            useDefaultLocation?: boolean,
            options?: RawAxiosRequestConfig,
        ) => Promise<RequestArgs>;
        tasksRetrieveBackup: (
            id: number,
            action?: "download",
            cloudStorageId?: number,
            filename?: string,
            location?: TasksRetrieveBackupLocationEnum,
            useDefaultLocation?: boolean,
            options?: RawAxiosRequestConfig,
        ) => Promise<RequestArgs>;
        tasksRetrieveData: (
            id: number,
            number?: number,
            quality?: TasksRetrieveDataQualityEnum,
            type?: TasksRetrieveDataTypeEnum,
            options?: RawAxiosRequestConfig,
        ) => Promise<RequestArgs>;
        tasksRetrieveDataMeta: (
            id: number,
            options?: RawAxiosRequestConfig,
        ) => Promise<RequestArgs>;
        tasksRetrieveDataset: (
            format: string,
            id: number,
            action?: "download",
            cloudStorageId?: number,
            filename?: string,
            location?: TasksRetrieveDatasetLocationEnum,
            useDefaultLocation?: boolean,
            options?: RawAxiosRequestConfig,
        ) => Promise<RequestArgs>;
        tasksRetrievePreview: (
            id: number,
            options?: RawAxiosRequestConfig,
        ) => Promise<RequestArgs>;
        tasksRetrieveStatus: (
            id: number,
            options?: RawAxiosRequestConfig,
        ) => Promise<RequestArgs>;
        tasksRetrieveValidationLayout: (
            id: number,
            options?: RawAxiosRequestConfig,
        ) => Promise<RequestArgs>;
        tasksUpdateAnnotations: (
            id: number,
            format?: string,
            rqId?: string,
            taskAnnotationsUpdateRequest?: null | TaskAnnotationsUpdateRequest,
            options?: RawAxiosRequestConfig,
        ) => Promise<RequestArgs>;
    }

    • tasksCreate: (
          taskWriteRequest: TaskWriteRequest,
          xOrganization?: string,
          org?: string,
          orgId?: number,
          options?: RawAxiosRequestConfig,
      ) => Promise<RequestArgs>

      The new task will not have any attached images or videos. To attach them, use the /api/tasks//data endpoint.

    • tasksCreateAnnotations: (
          id: number,
          cloudStorageId?: number,
          filename?: string,
          format?: string,
          location?: TasksCreateAnnotationsLocationEnum,
          useDefaultLocation?: boolean,
          taskAnnotationsWriteRequest?: null | AnnotationFileRequest,
          options?: RawAxiosRequestConfig,
      ) => Promise<RequestArgs>

      The request POST /api/tasks/id/annotations initiates a background process to import annotations into a task. Please, use the GET /api/requests/<rq_id> endpoint for checking status of the process. The rq_id parameter can be found in the response on initiating request.

    • tasksCreateBackup: (
          xOrganization?: string,
          cloudStorageId?: number,
          filename?: string,
          location?: TasksCreateBackupLocationEnum,
          org?: string,
          orgId?: number,
          rqId?: string,
          taskFileRequest?: TaskFileRequest,
          options?: RawAxiosRequestConfig,
      ) => Promise<RequestArgs>

      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.

    • tasksCreateBackupExport: (
          id: number,
          cloudStorageId?: number,
          filename?: string,
          location?: TasksCreateBackupExportLocationEnum,
          options?: RawAxiosRequestConfig,
      ) => Promise<RequestArgs>

      The request POST /api/<projects|tasks>/id/backup/export will initialize a background process to backup a resource. To check status of the process please, use GET /api/requests/<rq_id> where rq_id is request ID returned in the response for this endpoint.

    • tasksCreateData: (
          id: number,
          uploadFinish?: boolean,
          uploadMultiple?: boolean,
          uploadStart?: boolean,
          dataRequest?: DataRequest,
          options?: RawAxiosRequestConfig,
      ) => Promise<RequestArgs>

      Allows to upload data (images, video, etc.) 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://docs.cvat.ai/docs/manual/advanced/dataset_manifest/ After all data is sent, the operation status can be retrieved via the GET /api/requests/<rq_id>, where rq_id is request ID returned for this request. Once data is attached to a task, it cannot be detached or replaced.

    • tasksCreateDatasetExport: (
          format: string,
          id: number,
          cloudStorageId?: number,
          filename?: string,
          location?: TasksCreateDatasetExportLocationEnum,
          saveImages?: boolean,
          options?: RawAxiosRequestConfig,
      ) => Promise<RequestArgs>

      The request POST /api/<projects|tasks|jobs>/id/dataset/export will initialize a background process to export a dataset. To check status of the process please, use GET /api/requests/<rq_id> where rq_id is request ID returned in the response for this endpoint.

    • tasksDestroy: (id: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>

      All attached jobs, annotations and data will be deleted as well.

    • tasksDestroyAnnotations: (id: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>
    • tasksList: (
          xOrganization?: string,
          assignee?: string,
          dimension?: TasksListDimensionEnum,
          filter?: string,
          mode?: string,
          name?: string,
          org?: string,
          orgId?: number,
          owner?: string,
          page?: number,
          pageSize?: number,
          projectId?: number,
          projectName?: string,
          search?: string,
          sort?: string,
          status?: TasksListStatusEnum,
          subset?: string,
          trackerLink?: string,
          validationMode?: TasksListValidationModeEnum,
          options?: RawAxiosRequestConfig,
      ) => Promise<RequestArgs>
    • tasksPartialUpdate: (
          id: number,
          patchedTaskWriteRequest?: PatchedTaskWriteRequest,
          options?: RawAxiosRequestConfig,
      ) => Promise<RequestArgs>
    • tasksPartialUpdateAnnotations: (
          action: TasksPartialUpdateAnnotationsActionEnum,
          id: number,
          patchedLabeledDataRequest?: PatchedLabeledDataRequest,
          options?: RawAxiosRequestConfig,
      ) => Promise<RequestArgs>
    • tasksPartialUpdateDataMeta: (
          id: number,
          patchedDataMetaWriteRequest?: PatchedDataMetaWriteRequest,
          options?: RawAxiosRequestConfig,
      ) => Promise<RequestArgs>
    • tasksPartialUpdateValidationLayout: (
          id: number,
          patchedTaskValidationLayoutWriteRequest?: PatchedTaskValidationLayoutWriteRequest,
          options?: RawAxiosRequestConfig,
      ) => Promise<RequestArgs>

      WARNING: this operation is not protected from race conditions. It's up to the user to ensure no parallel calls to this operation happen. It affects image access, including exports with images, backups, chunk downloading etc.

    • tasksRetrieve: (id: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>
    • tasksRetrieveAnnotations: (
          id: number,
          action?: "download",
          cloudStorageId?: number,
          filename?: string,
          format?: string,
          location?: TasksRetrieveAnnotationsLocationEnum,
          useDefaultLocation?: boolean,
          options?: RawAxiosRequestConfig,
      ) => Promise<RequestArgs>

      Deprecation warning: Utilizing this endpoint ot export annotations as a dataset in a specific format will be deprecated in one of the next releases. Consider using new API: - POST /api/tasks/<task_id>/dataset/export?save_images=False to initiate export process - GET /api/requests/<rq_id> to check process status, where rq_id is request id returned on initializing request

    • tasksRetrieveBackup: (
          id: number,
          action?: "download",
          cloudStorageId?: number,
          filename?: string,
          location?: TasksRetrieveBackupLocationEnum,
          useDefaultLocation?: boolean,
          options?: RawAxiosRequestConfig,
      ) => Promise<RequestArgs>

      Deprecation warning: This endpoint will be deprecated in one of the next releases. Consider using new API: - POST /api/tasks/<task_id>/backup/export to initiate backup process - GET /api/requests/<rq_id> to check process status, where rq_id is request id returned on initializing request'

    • tasksRetrieveData: (
          id: number,
          number?: number,
          quality?: TasksRetrieveDataQualityEnum,
          type?: TasksRetrieveDataTypeEnum,
          options?: RawAxiosRequestConfig,
      ) => Promise<RequestArgs>
    • tasksRetrieveDataMeta: (id: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>
    • tasksRetrieveDataset: (
          format: string,
          id: number,
          action?: "download",
          cloudStorageId?: number,
          filename?: string,
          location?: TasksRetrieveDatasetLocationEnum,
          useDefaultLocation?: boolean,
          options?: RawAxiosRequestConfig,
      ) => Promise<RequestArgs>

      Deprecation warning: Utilizing this endpoint to export task dataset in a specific format will be deprecated in one of the next releases. Consider using new API: - POST /api/tasks/<task_id>/dataset/export?save_images=True to initiate export process - GET /api/requests/<rq_id> to check process status, where rq_id is request id returned on initializing request

    • tasksRetrievePreview: (id: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>
    • tasksRetrieveStatus: (id: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>

      This method is deprecated and will be removed in one of the next releases. To check status of task creation, use new common API for managing background operations: GET /api/requests/?action=create&task_id=<task_id>

    • tasksRetrieveValidationLayout: (id: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>
    • tasksUpdateAnnotations: (
          id: number,
          format?: string,
          rqId?: string,
          taskAnnotationsUpdateRequest?: null | TaskAnnotationsUpdateRequest,
          options?: RawAxiosRequestConfig,
      ) => Promise<RequestArgs>

      Utilizing this endpoint to check status of the import process is deprecated in favor of the new requests API: GET /api/requests/<rq_id>, where rq_id parameter is returned in the response on initializing request.