Tag

API operation on tags.

class rayvision_api.operators.tag.TagOperator(connect)

Bases: object

Task tag settings.

add_label(new_name, status=1)

Add a custom label.

Parameters:
  • new_name (str) – Label name.
  • status (int, optional) – Label status,0 or 1,default is 1.
add_task_tag(tag, task_ids)

Add a custom task tag. :param tag: Label name. :type tag: str :param task_ids: task id list. :type task_ids: list[int], optional

delete_label(del_name)

Delete custom label.

Parameters:del_name (str) – The name of the label to be deleted.
delete_task_tag(tag_ids)

del custom task label. :param label_ids: lable id list. :type label_ids: list[int], optional

get_label_list()

Get custom labels.

Returns:
Label list info.
e.g.:
{
“projectNameList”: [
{
“projectId”: 3671, “projectName”: “myLabel”

}

]

}

Return type:dict
get_project_list()

Get custom labels.

Returns:
Label list info.
e.g.:
[
{
“projectId”: 3671, “projectName”: “myLabel”

}

]

Return type:list