| 437 | |
| 438 | === PUT api/annotations/AIDzyy/permissions=== |
| 439 | |
| 440 | |
| 441 | Swapping rights of the users xyxy and xxzz: xyxy one becomes a reader, and xxzz becomes a writer. Updating w.r.t. |
| 442 | the output of "GET api/annotations/AIDzyy/permissions" above. |
| 443 | |
| 444 | Request body: |
| 445 | {{{#!xml |
| 446 | <?xml version="1.0" encoding="UTF-8"?> |
| 447 | <permissions xmlns="http://www.dasish.eu/ns/addit" |
| 448 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 449 | xsi:schemaLocation="http://www.dasish.eu/ns/addit http://dasish.eu/DASISH-schema.xsd"> |
| 450 | <user ref="http://dasish.eu/users/UIde1fe1f" permission="owner"/> |
| 451 | <user ref="http://dasish.eu/users/UIxyxy" permission="reader"/> |
| 452 | <user ref="http://dasish.eu/users/UIxxzz" permission="writer"/> |
| 453 | <user ref="http://dasish.eu/users/UIxaaa" permission="reader"/> |
| 454 | </permissions> |
| 455 | }}} |
| 456 | |