Thread
#prefect-community
    Zach Schumacher

    Zach Schumacher

    1 year ago
    is there anyway to tie a readme to a flow while registering, or rn can you only do it via the UI?
    Kevin Kho

    Kevin Kho

    1 year ago
    I think you would need to use the graphQL API with the
    Mutation.set_flow_group_description
    endpoint
    m

    Mariia Kerimova

    1 year ago
    Found this example:
    from prefect import Client
    
    FLOW_GROUP_ID=""
    
    mutation = """
    mutation($input: set_flow_group_description_input!){
       set_flow_group_description(input: $input){
          success
       } 
    }
    """
    
    README_STRING = """
    ## My markdown title
    My markdown text
    """
    
    client = Client()
    client.graphql(mutation, variables=dict(input=dict(description=README_STRING, flow_group_id=FLOW_GROUP_ID)))
    Zach Schumacher

    Zach Schumacher

    1 year ago
    thanks, i figured there was some way!
    Kevin Kho

    Kevin Kho

    1 year ago
    @Marvin archive “Set Flow Group Description Example”
    Marvin

    Marvin

    1 year ago
    Ben Muller

    Ben Muller

    1 year ago
    It would be super cool if somehow prefect could identify a docstring on a flow and upload this as the readme on the UI. 🌟 🙏
    Kevin Kho

    Kevin Kho

    1 year ago
    That seems like a good idea. I would suggest a feature request in the repo