Zoho - Trademark
Blogs
   Forums   Show Home
   Toll Free : 888 900 9646

API Home >> Show >> API Reference >> Private

 


To trash a particular presentation i.e. move it to the trash folder



Request URL : (POST)

                            XML : http://show.zoho.com/api/private/xml/trashpresentation/[presentationId]?apikey=[API Key]&ticket=[Ticket]

                            JSON : http://show.zoho.com/api/private/json/trashpresentation/[presentationId]?apikey=[API Key]&ticket=[Ticket]


Request parameters

To trash a particular presentation we need to submit a form data as mentioned below:


Sample Form (POST Method)


<form method="POST"    action="http://show.zoho.com/api/private/xml/trashpresentation/3000000005001?apikey=[APIKEY]&ticket=[Ticket]">

<input type="submit" value="TrashPresentation" name="submit">

</form>




Response fields

The schema document for the API response is located at: http://show.zoho.com/schema/api/trashpresentation.xsd


Field
Description
presentationId
Unique ID associated with each presentation.
presentationName
Name of the presentation that is being trashed.
ownerName
Displays the Email ID/Zoho ID of the presentation owner, i.e., the account from which the presentation is created
createdTime[Long Value] - Displays the created date of the presentation
trashedTime
[Long Value] - Specifies the date on which the presentation was trashed.


Sample Response

The following is the sample XML response for the above method:


<?xml version="1.0" encoding="UTF-8" ?>
<response uri="/api/private/xml/trashpresentation/3000000005001">
<result>
      <presentationId>3000000005001</presentationId>
      <presentationName>ajax</presentationName>
      <ownerName>Roger</ownerName>
      <createdTime>15117765098832</createdTime>
      <trashedTime>15117765108832</trashedTime>
</result>
</response>


Equivalent JSON response


{
    "response":
    {
        "uri": "/api/private/json/trashpresentation/3000000005001",
        "result":
        {
              "presentationId":"30000000005001",
              "presentationName":"ajax",
              "ownerName":"Roger",
              "createdTime":"15117765098832",
              "trashedTime":"15117765108832"
        }
    }
}




Errors


Trashing a presentation method may return general & input errors.