From ed84b34ee9c351ecb6b748e5aa6ab1523d5e5fd8 Mon Sep 17 00:00:00 2001 From: Alexandre Vryghem Date: Thu, 28 Mar 2024 12:04:34 +0100 Subject: [PATCH] Added required collection body parameters to PUT request & removed body parameters that can't be updated from the Collection/Community/Item PUT requests --- collections.md | 5 +++-- communities.md | 2 -- items.md | 7 +------ 3 files changed, 4 insertions(+), 10 deletions(-) diff --git a/collections.md b/collections.md index 36440c3d..63e41c8a 100644 --- a/collections.md +++ b/collections.md @@ -682,7 +682,7 @@ Provide updated metadata information about a specific collection, when the updat ```json { "uuid": "20263916-6a3d-4fdc-a44a-4616312f030c", - "name": "test collection", + "handle": "10673/2", "metadata": { "dc.title": [ { @@ -700,7 +700,8 @@ Provide updated metadata information about a specific collection, when the updat "confidence": -1 } ] - } + }, + "type": "collection" } ``` diff --git a/communities.md b/communities.md index 1dfd9203..63006151 100644 --- a/communities.md +++ b/communities.md @@ -359,9 +359,7 @@ Provide updated metadata information about a specific community, when the update ```json { - "id": "b8872eba-1a79-4b8b-a8f6-55fa8f73197b", "uuid": "b8872eba-1a79-4b8b-a8f6-55fa8f73197b", - "name": "test new title", "handle": "123456789/60631", "metadata": { "dc.title": [ diff --git a/items.md b/items.md index a0e1067d..8cd852b2 100644 --- a/items.md +++ b/items.md @@ -186,9 +186,7 @@ Provide updated metadata information for an item, when the update is completed t ```json { - "id": "a8ba963f-d9c9-4198-b5a4-3f74e2ab6fb9", "uuid": "a8ba963f-d9c9-4198-b5a4-3f74e2ab6fb9", - "name": "Test new title", "handle": "123456789/60636", "metadata": { "dc.contributor.author": [ @@ -208,9 +206,6 @@ Provide updated metadata information for an item, when the update is completed t } ] }, - "inArchive": true, - "discoverable": true, - "withdrawn": false, "type": "item" } ``` @@ -585,4 +580,4 @@ Return codes: * 204 No content - if the operation succeed * 401 Unauthorized - if you are not authenticated * 403 Forbidden - if you are not logged in with sufficient permissions -* 404 Not found - if the item doesn't exist (or was already deleted) \ No newline at end of file +* 404 Not found - if the item doesn't exist (or was already deleted)