collections
Partially update collection
Partially update a collection by sending only the keys to change. For collections with item-type based metadata, send the keys to update inside fields:{} — keys not present are preserved. categories entries accept id (int) or source_id (string), mixed allowed (bare integers rejected). Unresolved source_id values are reported in the response warnings array. Unrecognised field names inside fields (e.g. a typo) are rejected with 422.
patch/account/collections/{collection_id}
Path parameters
collection_idinteger required
Collection Unique identifier
Request body
Example request
{
"title": "Test collection title",
"description": "Test description of collection",
"articles": [
2000001,
2000005
],
"authors": [
{
"name": "John Doe"
},
{
"id": 20005
}
],
"categories": [
1,
10,
11
],
"categories_by_source_id": [
"300204",
"400207"
],
"tags": [
"tag1",
"tag2"
],
"keywords": [
"tag1",
"tag2"
],
"references": [
"http://figshare.com",
"http://api.figshare.com"
],
"related_materials": [
{
"id": 10432,
"identifier": "10.6084/m9.figshare.1407024",
"identifier_type": "DOI",
"relation": "IsSupplementTo",
"title": "Figshare for institutions brochure",
"is_linkout": false
}
],
"custom_fields": {
"defined_key": "value for it"
},
"custom_fields_list": [
{
"name": "key"
}
],
"timeline": {
"firstOnline": "2015-12-31",
"publisherPublication": "2015-12-31",
"publisherAcceptance": "2015-12-31"
}
}Response
Reset Content