diff --git a/src/caosdb/yamlapi.py b/src/caosdb/yamlapi.py
index ae8c760db82b011bc9988a084e8c2bc30055d41d..9a69a5276804727084af65c6568b22833e8be596 100644
--- a/src/caosdb/yamlapi.py
+++ b/src/caosdb/yamlapi.py
@@ -73,10 +73,13 @@ def dict_to_xml(d):
 
 
 def yaml_to_xml(yamlstr):
-    """
-    yamlstr: The string to load the yaml document from.
-    Loads a yaml document from yamlstr and converts
-    it to XML.
+    """Load a yaml document from yamlstr and converts it to XML.
+
+    Parameters
+    ----------
+    yamlstr : str
+        The string to load the yaml document from.
+
     """
     return dict_to_xml(yaml.load(yamlstr))