TourCMS, a leading online booking and channel management solution is operated by Palisis.

Contact Info

Palisis AG
Florastrasse 18A
8610 Uster
support@palisis.com
+41 44 533 40 40

Follow Us

home > support > API > Method list > Delete tour document

Delete tour document

Remove a document (and related description) from a Tour.

Want to replace the document instead? See the Tour file upload endpoint.

REST info

Endpoint/c/tour/document/delete
FormatsXML
Example/c/tour/document/delete.xml
VerbPOST
 
POST data:
<?xml version="1.0"?>
<file>
	<tour_id>1</tour_id>
	<document_id>10</document_id>
</file>

Code samples

PHP examples use the PHP Client Library with the return type set to SimpleXML


Description

object delete_tour_document(int $channel, SimpleXMLElement $document_info)


Parameters

$channel
Integer ID number for the channel this tour belongs to.
$document_info
SimpleXMLElement containing the Tour and Document IDs


Example


// The channel ID this tour belongs to.
$channel = 3930;

// Start building the  XML
$document_info = new SimpleXMLElement('<file />');

// Define the ID of the Tour we wish to delete the document from
$image_info->addChild('tour_id', '1');

// And the Document ID (Currently only 1 document can be uploaded, so always 1)
$image_info->addChild('document_id', '1');

// Call TourCMS API, deleting the image
$result = $tourcms->delete_tour_document($channel, $document_info);

if ($result->error == "OK") {
    print "Document deleted";
} else {
    print $result->error;
}
Document deleted

Looking for sample code in a different language? TourCMS and community provided API libraries

Try it

Enter your TourCMS API credentials below to call the Delete Tour Document endpoint.

Take care, submitting this form will modify live data!


            
            

Querystring parameters

There are no querystring parameters.

Post fields

Post fields
XML NodeNotes
file

The root XML element, can contain any of the following child nodes.

XML NodeNotes
tour_idThe Tour ID the image belongs to. Mandatory.
document_idThe ID of the document (Currently only 1). Mandatory.

Response fields

Response fields
XML NodeNotes
request Confirmation of the request that you sent
error Any error message returned, if there is no error this will just contain the text OK.

More information