Skip to content

tags

tags

Dataflow tag route operations.

get_dataflow_tags_by_id async

get_dataflow_tags_by_id(
    auth: DomoAuth,
    dataflow_id: int,
    *,
    context: RouteContext | None = None,
    **context_kwargs,
) -> ResponseGetData

Endpoint

  • GET /dataprocessing/v1/dataflows/{}/tags
Source code in src/crew_dcs/routes/dataflow/tags.py
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
@gd.route_function
@log_call(
    level_name="route",
    config=LogDecoratorConfig(
        entity_extractor=DomoEntityExtractor(),
        result_processor=DomoEntityResultProcessor(),
    ),
)
async def get_dataflow_tags_by_id(
    auth: DomoAuth,
    dataflow_id: int,
    *,
    context: RouteContext | None = None,
    **context_kwargs,
) -> rgd.ResponseGetData:
    url = f"https://{auth.domo_instance}.domo.com/api/dataprocessing/v1/dataflows/{dataflow_id}/tags"

    res = await gd.get_data(
        auth=auth,
        url=url,
        method="GET",
        context=context,
    )

    if not res.is_success:
        raise GET_Dataflow_Error(res=res)

    return res

put_dataflow_tags_by_id async

put_dataflow_tags_by_id(
    auth: DomoAuth,
    dataflow_id: int,
    tag_ls: list[str],
    *,
    context: RouteContext | None = None,
    **context_kwargs,
) -> ResponseGetData

Endpoint

  • PUT /dataprocessing/v1/dataflows/{}/tags

Called by

Source code in src/crew_dcs/routes/dataflow/tags.py
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
@gd.route_function
@log_call(
    level_name="route",
    config=LogDecoratorConfig(
        entity_extractor=DomoEntityExtractor(),
        result_processor=DomoEntityResultProcessor(),
    ),
)
async def put_dataflow_tags_by_id(
    auth: DomoAuth,
    dataflow_id: int,
    tag_ls: list[str],
    *,
    context: RouteContext | None = None,
    **context_kwargs,
) -> rgd.ResponseGetData:
    url = f"https://{auth.domo_instance}.domo.com/api/dataprocessing/v1/dataflows/{dataflow_id}/tags"

    body = generate_tag_body(dataflow_id=dataflow_id, tag_ls=tag_ls)

    res = await gd.get_data(
        auth=auth,
        url=url,
        method="PUT",
        body=body,
        context=context,
    )

    if not res.is_success:
        raise CRUD_Dataflow_Error(res=res)

    return res

See also

Domo Knowledge Base categories

  • Transform Data (Magic ETL, DataFlows, SQL)