-
Notifications
You must be signed in to change notification settings - Fork 15
Collections: Get collection template item
##GET /collections/:id/items/template *Retrieves a template item for a collection, defined by its metadata profile - this item template can be used to create items in this collection.
####Response status codes #####200 OK Successful retrieval of the template item
#####404 Not found The collection with provided :id is not found (does not exist)
#####401 Unauthorized Authentication is necessary to retrieve the template item for this collection (depends on authorization for the collection)
#####403 Forbidden Wrong credentials provided to retrieve the template item for this collection (depends on authorization for the collection)
####Example request
curl http://<base-url>/collections/D9ptaCK7kwuxCb6k/items/template
#####Example response body (for a collection metadata profile with 3 metadata fields: Title (text type), License(license type), Comment (text type))
{
"id": "newid",
"version": 0,
"collectionId": "D9ptaCK7kwuxCb6k",
"filename": "<change-the-file-name-here-or-provide-separate-field-for-fetch-or-reference-url-see-API-Documentation>",
"fileSize": 0,
"metadata": {
"Title": "Textual value",
"LicenseINGEST": {
"license": "License name",
"url": "http://example.license.com"
},
"CommentINGEST": "Textual value"
}
}