Skip to content

Commit 3520b25

Browse files
ybndgithub-actions[bot]
authored andcommitted
Explain metadata registry requirement for PATCH paths
(cherry picked from commit 405f287)
1 parent 242e60a commit 3520b25

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

metadata-patch.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,13 @@ The examples in each section below build on each other, assuming an initial meta
3535
}
3636
```
3737

38+
PATCH operations targeting metadata must specify a JSON `path` relative to the DSpace object, valid for the following levels:
39+
- All metadata: `/metadata``value` must be an object (if applicable)
40+
- All values of one metadata field: `/metadata/dc.title``value` must be an array (if applicable)
41+
- One values of one metadata field: `/metadata/dc.title/0``value` must be an object (if applicable)
42+
43+
Any metadata field explicitly included in the `path` must be part the metadata registry. PATCH requests targeting unknown metadata fields will fail with HTTP 422 (unprocessable entity).
44+
3845
Note: The metadata of items _in submission_ is modeled in the same way described here -- as a map
3946
of metadata keys to an ordered array of values. The primary difference is where the metadata
4047
is located within the JSON representation. The documentation and examples below apply to archived

0 commit comments

Comments
 (0)