| |||||
API Home >> Writer >> API Reference >> POST Method APIs
To share a document privately with a set of Zoho Writer users.
| Field | Description |
| documentId | Unique ID of the document that is to be shared. |
| shareto | [string] - One or more Zoho IDs/Email IDs of Zoho Writer users to whom the document is to be shared. For adding multiple users, separate them by 'comma'. |
| allowtowrite | [boolean] - Give access permission for editing the document to shared users. If true, then the users are allowed "Read/Write" access. |
<form method="POST" action="http://export.writer.zoho.com/api/private/xml/shareDocument/[documentId]?apikey=[APIKEY]&ticket=[Ticket]">
<input type="hidden" name="shareto" value="[Email IDs/Zoho IDs]">
<input type="hidden" name="allowtowrite" value="[true/false]">
<input type="submit" value="ShareDoc" class="divbutton" name="submit">
</form>
| Field | Description |
| documentId | Unique ID associated with the shared document. |
| documentName | Name of document that is being shared. |
| sharedto | [string] - List of user(s) to whom the document has been shared. |
<?xml version="1.0" encoding="UTF-8" ?>
<response uri="/api/private/xml/shareDocument/8892000000065001">
<result>
<documentId>8892000000065001</documentId>
<documentName>CreatorFormInWriter</documentName>
<sharedto>
<user>"merrick"</user>
<user>"martha"</user>
<user>"simon"</user>
</sharedto>
</result>
</response>
{
"response":
{
"uri": "/api/private/json/shareDocument/8892000000065001",
"result":
{
"documentId":"8892000000065001",
"documentName":"CreatorFormInWriter",
"sharedto":
{
"user":
[
{
"merrick"
},
{
"martha"
},
{
"simon"
}
]
}
}
}
}