is there anyway to tie a readme to a flow while re...
# ask-community
z
is there anyway to tie a readme to a flow while registering, or rn can you only do it via the UI?
k
I think you would need to use the graphQL API with the
Mutation.set_flow_group_description
endpoint
m
Found this example:
Copy code
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)))
🙌 1
z
thanks, i figured there was some way!
k
@Marvin archive “Set Flow Group Description Example”
b
It would be super cool if somehow prefect could identify a docstring on a flow and upload this as the readme on the UI. 🌟 🙏
k
That seems like a good idea. I would suggest a feature request in the repo