Put
Update an existing collection
Parameters:
Name
Optional / Required
Data type
Description
Default
id
required
String
An id of your collections
name
required
String
A name for your collection
icon
optional
String
The icon used in the App
section_sorting
optional
String
Sort sections in a collection manually or automatically (by create_date_desc, create_date_asc, title_desc, title_asc)
manually
Example:
curl -X PUT -H "X-ACCESS-TOKEN: YOUR_ACCESS_TOKEN" -d "id=omkYGduXowlyx9WF" -d "name=Holidays 2013" "https://api.yumpu.com/2.0/collection.json"
Whatever language you are using, the result will be the same.
{
"collection": [
{
"id": "omkYGduXowlyx9WF",
"create_date": "2013-09-23 09:05:47",
"update_date": "2013-09-23 09:11:45",
"name": "Holidays 2013",
"icon": "none",
"order": 0,
"sections": [
{
"id": "omkYGduXowlyx9WF_stVFPUYW3kHX07B6",
"name": "",
"description": "",
"sorting": "manually",
"order": 0
}
]
}
],
"state": "success"
}
Last updated
Was this helpful?