The API allows users to add text to a specific slide in a presentation.
Request URI:
Developers can send the request in the following URI format:
https://show.zoho.com/api/<access>/<format>/[presentation_id]/addtext?apikey=[API Key]&authtoken=[AuthToken]&scope=DataAPI
Access : private
Format : xml, json
HTTPs Method : POST
Form Request Parameters Reference
The following are the parameters that needs to be passed in multi-part HTTPs POST request for adding text to a particular slide in a presentation:
Parameter | Value
| Description |
slide-id
| integer
| Mandatory. Unique ID associated with each slide.
|
content
| string
| Mandatory. Comma separated para values of text and level, where level value is optional.
Possible values: [{"text":"para1"},{"text":"para2","level":"2"}]
Note: level 1-9 represents text levels e.g., bullet points-first level, sub bullet, etc
|
placeholder-type
| string
| Optional. Represents the position in the slide where the text is to be added.
Possible values: TITLE|TXTBODY|DATETIME|FOOTER|SLIDENUM|CONTENT|TXT|SUBTITLE
|
Refer the below image to understand different text levels.
Multi-part Form Submit - Sample
<form method="POST" action="https://show.zoho.com/api/private/xml/[presentation_id]/addtext" enctype="multipart/form-data"
target="_self" accept-charset="UTF-8">
<input type="hidden" name="apikey" value="[Zoho_API_Key]">
<input type="hidden" name ="authtoken" id="authtoken" value="bad18eba1ff45jk7858b8ae88a77fa30">
<input type="hidden" name ="scope" id="scope" value="DataAPI">
<input type="hidden" name="content" value="[{"text":"para one"},{"text":"para two","level":"2"}]">
<input type="hidden" name="slide-id" value="50988770088338221">
<input type="hidden" name="placeholder-type" value="TXTBODY">
<input type="submit" name="submit" value="Add Text">
</form>
Response Parameters Reference
Parameter | Value
| Description |
presentationId
| integer
| Unique ID associated with a particular presentation.
|
slideId
| integer | Unique ID associated with each slide.
|
textAdded
| string
| Text added to a specific slide.
|
Sample Response :
The following is a response (both in XML & JSON) for adding text to a specific slide in a presentation.
XML
<?xml version="1.0" encoding="UTF-8" ?>
<response uri="/api/private/xml/15265000000006107/addtext">
<result>
<presentation>
<presentationId>15265000000006107</presentationId>
<slideId>50988770088338221</slideId>
<textAdded>success</textAdded>
</presentation>
</result>
</response>
JSON
{
"response":
{
"uri": "/api/private/json/15265000000006107/addtext",
"result":
{
"presentation":
{
"presentationId":"15265000000006107",
"slideId":"50988770088338221",
"textAdded":"success",
}
}
}
}