A
A
API
Search…
Put

Update an existing document

Parameters:

Name
Optional / Required
Data type
Description
Default
id
required
Integer
One of your document ids
title
required
String
A title for your document. Min. length 5 characters, max. length 255 characters
description
optional
String
A description for your document. Min. length 5 characters, max. length 2500 characters
category
optional
Integer
1, 2 or ... (A list of valid category ids: Document categories)
0 = None
language
optional
String
en, de or ... (A list of valid languages: Document languages)
en
tags
optional
String
A list of words seperated by comma (house,garden,balcony). Min. length 3 characters, max. length 30 characters. Allowed characters a-z and a space.
Autogenerated by tag service
visibility
optional
String
public, private, rprotected, pprotected, dprotected, webkiosk, appkiosk or webappkiosk (rprotected = protected by referrer, pprotected = protected by password, dprotected = protected by domain(s))
public
validity
optional
String
Valid from and / or valid until Examples: 2013-10-01T00:00:00-2013-10-30T23:59:59 (valid from 2013-10-01 00:00:00, valid until 2013-10-30 23:59:59) 2013-10-01T00:00:00- (valid from 2013-10-01 00:00:00-) -2013-10-30T23:59:59 (valid until -2013-10-30 23:59:59)
downloadable
optional
String
Allow users to download your source pdf file. y or n
n
recommended_magazines
optional
String
Show recommended magazines on Yumpu? y or n
y
social_sharing
optional
String
Show social sharing buttons on Yumpu. y or n
y
site_pageview
optional
String
Show document in single or double pageview. double or single
double
player_social_sharing
optional
String
Show social sharing buttons in Yumpu Player. y or n
y
player_download_pdf
optional
String
Show button "download pdf" in Yumpu Player. y or n
n
player_print_page
optional
String
Show button "print page" in Yumpu Player. y or n
n
player_branding
optional
String
Show Yumpu branding in Yumpu Player. y or n
y
player_sidebar
optional
String
Show a list of recommended documents in Yumpu Player. y or n
n
player_html5_c2r
optional
String
Activate HTML5 full screen on Yumpu. y or n
y
player_outer_shadow
optional
String
Drop shadow in Yumpu player. y or n
y
player_inner_shadow
optional
String
Shadow effects on pages. y or n
y
player_ga
optional
String
Activate Google Analytics tracking. A valid UA code from Google Analytics.
access_tags
optional
String
One or multiple access_tag ids (myid1 or myid1,myid2)
subscriptions
optional
String
One or multiple subscription ids (myid1 or myid1,myid2)
iap
optional
String
Enable In-App Purchase (y or n)
n
itc_product_id
optional
String
iTunes Product ID
curl
PHP
JavaScript
Java
Example:
1
curl -X PUT -H "X-ACCESS-TOKEN: YOUR_ACCESS_TOKEN" -d "id=20582984" -d "title=My new document title" "http://api.yumpu.com/2.0/document.json"
Copied!
Example:
1
require_once('../yumpu.php');
2
$yumpu = new Yumpu();
3
$data = array(
4
'id' => 20582984,
5
'title' => 'My new document title'
6
);
7
$putDocument = $yumpu->putDocument($data);
8
print_r($putDocument);
Copied!
Example:
1
var yumpu = require('yumpu');
2
yumpu.setToken('yourToken');
3
var parameters = {
4
id: '20582984',
5
title: 'My new document title'
6
};
7
yumpu.putDocument(parameters, function(statusCode, document){
8
console.log('Status: ' + statusCode);
9
console.log(document);
10
});
Copied!
Example:
1
Yumpu y = new Yumpu("your access token");
2
String[] params = {"id=20582984", "title=My new document title"};
3
System.out.println(y.putDocument(params));
Copied!
Whatever language you are using, the result will be the same.
1
{
2
"document": [
3
{
4
"id": 20582984,
5
"create_date": "2016-09-13 09:13:15",
6
"update_date": "2016-09-13 09:17:23",
7
"url": "http://www.yumpu.com/de/document/view/55932706/new-title-2",
8
"short_url": "http://www.yumpu.com/s/Ok8tEcVRDCsfAod0",
9
"image": {
10
"small": "http://img.yumpu.com/55932706/1/115x163/new-title.jpg",
11
"medium": "http://img.yumpu.com/55932706/1/452x640/new-title.jpg",
12
"big": "http://img.yumpu.com/55932706/1/1129x1600/new-title.jpg"
13
},
14
"language": "de",
15
"title": "My new document title",
16
"description": "",
17
"pages": 3,
18
"width": 452,
19
"height": 640,
20
"tags": [
21
"suchparameter",
22
"liefert",
23
"google",
24
"webseiten",
25
"suchbegriff",
26
"mehreren",
27
"angezeigt",
28
"beschreibung",
29
"nutzwert",
30
"treffer",
31
"www.lukasbals.at"
32
],
33
"embed_code": "<iframe width=\"512px\" height=\"384px\" src=\"https://www.yumpu.com/de/embed/view/CsdA9tSUlmyVvbNO\" frameborder=\"0\" allowfullscreen=\"true\" allowtransparency=\"true\"></iframe>",
34
"settings": {
35
"date_validity_from": "",
36
"date_validity_until": "",
37
"site_social_sharing": true,
38
"privacy_mode": "public",
39
"site_download_pdf": false,
40
"site_recommended_magazines": true,
41
"player_download_pdf": false,
42
"player_print_page": false,
43
"player_branding": true,
44
"player_sidebar": false,
45
"player_social_sharing": true,
46
"player_google_analytics_code": "",
47
"player_html5_c2r": true,
48
"player_outer_shadow": true,
49
"player_inner_shadow": true,
50
"appkiosk_itc_product_id": "",
51
"appkiosk_iap_sale_item": false,
52
"magazine_premium_blurred": false,
53
"magazine_premium_blurred_page_range": "",
54
"magazine_page_teaser": false,
55
"magazine_page_teaser_page_range": "",
56
"magazine_page_teaser_url": "",
57
"magazine_page_teaser_image_url": "",
58
"magazine_acl_running": false,
59
"player_zoom_factor": 2.5,
60
"hotspoteditor_custom": false
61
},
62
"access_tags": false,
63
"subscriptions": false
64
}
65
],
66
"state": "success",
67
"status_code": 200,
68
"completed_in": 0.8976
69
}
Copied!
Last modified 1yr ago