code: def overwrite_workspace_config(namespace, workspace, cnamespace, configname, body):
      
      headers = _fiss_agent_header({"Content-type": "application/json"})
      uri = "workspaces/{0}/{1}/method_configs/{2}/{3}".format(namespace,
                                          workspace, cnamespace, configname)
      return __put(uri, headers=headers, json=body)
docs: Add or overwrite method configuration in workspace.
  
      Args:
          namespace  (str): project to which workspace belongs
          workspace  (str): Workspace name
          cnamespace (str): Configuration namespace
          configname (str): Configuration name
          body      (json): new body (definition) of the method config
  
      Swagger:
          https://api.firecloud.org/#!/Method_Configurations/overwriteWorkspaceMethodConfig