def update_repository_method(namespace, method, synopsis, wdl, doc=None,<EOL>comment="<STR_LIT>"):
with open(wdl, '<STR_LIT:r>') as wf:<EOL><INDENT>wdl_payload = wf.read()<EOL><DEDENT>if doc is not None:<EOL><INDENT>with open (doc, '<STR_LIT:r>') as df:<EOL><INDENT>doc = df.read()<EOL><DEDENT><DEDENT>body = {<EOL>"<STR_LIT>": namespace,<EOL>"<STR_LIT:name>": method,<EOL>"<STR_LIT>": "<STR_LIT>",<EOL>"<STR_LIT>": wdl_payload,<EOL>"<STR_LIT>": doc,<EOL>"<STR_LIT>": synopsis,<EOL>"<STR_LIT>": comment<EOL>}<EOL>return __post("<STR_LIT>",<EOL>json={key: value for key, value in body.items() if value})<EOL>
Create/Update workflow definition.

    FireCloud will create a new snapshot_id for the given workflow.

    Args:
        namespace (str): Methods namespace
        method (str): method name
        synopsis (str): short (<80 char) description of method
        wdl (file): Workflow Description Language file
        doc (file): (Optional) Additional documentation
        comment (str): (Optional) Comment specific to this snapshot

    Swagger:
        https://api.firecloud.org/#!/Method_Repository/post_api_methods