Skip to content

Commit ed84b34

Browse files
Added required collection body parameters to PUT request & removed body parameters that can't be updated from the Collection/Community/Item PUT requests
1 parent 84ab116 commit ed84b34

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

collections.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,7 @@ Provide updated metadata information about a specific collection, when the updat
682682
```json
683683
{
684684
"uuid": "20263916-6a3d-4fdc-a44a-4616312f030c",
685-
"name": "test collection",
685+
"handle": "10673/2",
686686
"metadata": {
687687
"dc.title": [
688688
{
@@ -700,7 +700,8 @@ Provide updated metadata information about a specific collection, when the updat
700700
"confidence": -1
701701
}
702702
]
703-
}
703+
},
704+
"type": "collection"
704705
}
705706
```
706707

communities.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,9 +359,7 @@ Provide updated metadata information about a specific community, when the update
359359

360360
```json
361361
{
362-
"id": "b8872eba-1a79-4b8b-a8f6-55fa8f73197b",
363362
"uuid": "b8872eba-1a79-4b8b-a8f6-55fa8f73197b",
364-
"name": "test new title",
365363
"handle": "123456789/60631",
366364
"metadata": {
367365
"dc.title": [

items.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,7 @@ Provide updated metadata information for an item, when the update is completed t
186186

187187
```json
188188
{
189-
"id": "a8ba963f-d9c9-4198-b5a4-3f74e2ab6fb9",
190189
"uuid": "a8ba963f-d9c9-4198-b5a4-3f74e2ab6fb9",
191-
"name": "Test new title",
192190
"handle": "123456789/60636",
193191
"metadata": {
194192
"dc.contributor.author": [
@@ -208,9 +206,6 @@ Provide updated metadata information for an item, when the update is completed t
208206
}
209207
]
210208
},
211-
"inArchive": true,
212-
"discoverable": true,
213-
"withdrawn": false,
214209
"type": "item"
215210
}
216211
```
@@ -585,4 +580,4 @@ Return codes:
585580
* 204 No content - if the operation succeed
586581
* 401 Unauthorized - if you are not authenticated
587582
* 403 Forbidden - if you are not logged in with sufficient permissions
588-
* 404 Not found - if the item doesn't exist (or was already deleted)
583+
* 404 Not found - if the item doesn't exist (or was already deleted)

0 commit comments

Comments
 (0)