19954: Update API docs to reflect permission link deduplication.
authorTom Clegg <tom@curii.com>
Wed, 1 Feb 2023 18:34:51 +0000 (13:34 -0500)
committerTom Clegg <tom@curii.com>
Wed, 1 Feb 2023 18:34:51 +0000 (13:34 -0500)
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>

doc/api/methods/links.html.textile.liquid

index eceea296da72a17313567a38f4c6616be4a8aa81..04be591a05ca6dcc6a0c8475298fbdf0c229842f 100644 (file)
@@ -37,7 +37,11 @@ Some classes are pre-defined by convention and have standard meanings attached t
 
 h3. permission
 
-See "permission links":{{site.baseurl}}/api/permission-model.html#links section of the permission model.
+The significance of permission links is discussed in the "permission links":{{site.baseurl}}/api/permission-model.html#links section of the permission model documentation.
+
+Permission links are transparently de-duplicated during create/update/delete operations. As a result these API methods have slightly different semantics.
+* When requesting to create a new permission link, the API may respond with an existing permission link that had the same @head_uuid@ and @tail_uuid@, rather than creating a new one. If the requested permission level is higher than the existing permission link, the existing link will be updated accordingly. Otherwise the existing link will be returned unchanged.
+* When deleting a permission link, any other existing links that have the same @head_uuid@ and @tail_uuid@ are also deleted.
 
 h3. star