Put

Update an existing embed

Parameters:

Request parameters by type (1 = player)

Request parameters by type (2 = logo)

Request parameters by type (3 = link)

Request parameters by type (4 = button)

Request parameters by type (5 = cover)

Request parameters by type (6 = bookshelf)

Request parameters by type (7 = player_preset)

Example:

curl -X PUT -H "X-ACCESS-TOKEN: YOUR_ACCESS_TOKEN" -d "id=zKtHE23d6R0qT1rf" -d "document_id=11199" -d "type=1" -d "outline_color=0000000" -d "width=800" -d "outline_size=5" -d "background_color=CCCCCC" -d "outline_enabled=y" -d "title_font_color=0000000" "https://api.yumpu.com/2.0/embed.json"

Whatever language you are using, the result will be the same.

{
"embed": {
"id": "zKtHE23d6R0qT1rf",
"user_id": 10000,
"document_id": "11199",
"type": "1",
"create_date": "2014-12-03 10:57:49",
"code": "iframe",
"settings": {
"background_color": "CCCCCC",
"fullscreen_background_color": "253139",
"height": "580",
"outline_color": "000000",
"outline_enabled": "1",
"outline_size": "5",
"page_view": "double_page",
"player_autoflip_enabled": "2",
"player_c2r_destination": "fullscreen",
"player_c2r_enabled": "1",
"player_c2r_text": "Click to read",
"player_c2r_type": "buttonClassic",
"player_mobile_enabled": "1",
"player_type": "2",
"start_page": "1",
"text_font_style": "off",
"text_font_weight": "off",
"title_font_color": "000000",
"title_font_family": "ABeeZee:regular:latin",
"title_font_size": "14",
"title_font_style": "off",
"title_font_weight": "off",
"username_enabled": "1",
"width": "800"
},
"update_date": "2014-12-16 11:28:37"
},
"state": "success",
"completed_in": "0.4333"
}

Last updated