Delete a document in a section

Parameters:

Name Optional / Required Data type Description Default
id required String One of your section ids
documents required String or integer One or more document ids

Example:

curl -X DELETE-H "X-ACCESS-TOKEN: YOUR_ACCESS_TOKEN" -d "id=iMWWKoMS76pjqMoO_vpgFQQ3sHervO8yj" -d "documents=20327014,20327015" "http://api.yumpu.com/2.0/collection/section/document.json"

Example:

require_once('../yumpu.php');
$yumpu = new Yumpu();
$data = array(
    'id' => 'iMWWKoMS76pjqMoO_vpgFQQ3sHervO8yj',
    'documents' => '20327014,20327015'
);
$deleteSectionDocument = $yumpu->deleteSectionDocument($data);
print_r($deleteSectionDocument);

Example:

var yumpu = require('yumpu');
yumpu.setToken('yourToken');
var parameters = {
  id: 'iMWWKoMS76pjqMoO_vpgFQQ3sHervO8yj',
  documents: '20327014,20327015'
};
yumpu.deleteSectionDocument(parameters, function(statusCode, document){
   console.log('Status: ' + statusCode);
   console.log(document);
});

Example:

Yumpu y = new Yumpu("your access token");
String id = "iMWWKoMS76pjqMoO_vpgFQQ3sHervO8yj";
String documents = "20327014,20327015";
System.out.println(y.deleteSectionDocument(id, documents));

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

{"state":"success"}

results matching ""

    No results matching ""