A
A
API
Search…
Delete

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
curl
PHP
JavaScript
Java
Example:
1
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"
Copied!
Example:
1
require_once('../yumpu.php');
2
$yumpu = new Yumpu();
3
$data = array(
4
'id' => 'iMWWKoMS76pjqMoO_vpgFQQ3sHervO8yj',
5
'documents' => '20327014,20327015'
6
);
7
$deleteSectionDocument = $yumpu->deleteSectionDocument($data);
8
print_r($deleteSectionDocument);
Copied!
Example:
1
var yumpu = require('yumpu');
2
yumpu.setToken('yourToken');
3
var parameters = {
4
id: 'iMWWKoMS76pjqMoO_vpgFQQ3sHervO8yj',
5
documents: '20327014,20327015'
6
};
7
yumpu.deleteSectionDocument(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 id = "iMWWKoMS76pjqMoO_vpgFQQ3sHervO8yj";
3
String documents = "20327014,20327015";
4
System.out.println(y.deleteSectionDocument(id, documents));
Copied!
Whatever language you are using, the result will be the same.
1
{"state":"success"}
Copied!
Last modified 1yr ago