Create through Web URL
Purpose
To create a document via Web URL.
HTTP Request URL
https://{zohoapis_domain}/writer/api/v1/documents
Body Parameters
Parameter | Data Type | Description |
Mandatory Parameters | ||
url | String | Specify the Web URL (which is publicly accessible) through which the document needs to be created. |
Optional Parameters | ||
filename | String | Specify a unique name for the document. |
folder_id | String | Specify a folder name, if you would like the document to be created in a particular folder or location. |
resource_type | String | Specify the type of document which needs to be created. Possible values: fillable/merge/sign |
Sample Request
Copiedcurl -X POST \
https://www.zohoapis.com/writer/api/v1/documents \
-H 'Authorization: Zoho-oauthtoken xxx.yyy.zzz' \
-H 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \
-F url=https://zylker.com/downloads/Template.docx
Sample Response
Copied{
"created_time": "2018-05-08T14:04:31Z",
"role": "OWNER",
"owner_id": "4579020",
"parent_folder_id": "ponaz1ba3eac63b1242848a24c7561c5ed9fe",
"open_url": "https://writer.zoho.com/writer/open/ponazaad72ae3cb0143aca0763ecd5acb87e1",
"is_favourite": false,
"document_id": "ponazaad72ae3cb0143aca0763ecd5acb87e1",
"created_by": "Amelia",
"version": "1.0",
"document_name": "Invoice template",
"modified_time": "2018-05-08T14:04:32Z",
"preview_url": "https://writer.zoho.com/writer/preview/ponazaad72ae3cb0143aca0763ecd5acb87e1",
"creator_id": "4579020",
"download_url": "https://writer.zoho.com/api/v1/download/ponazaad72ae3cb0143aca0763ecd5acb87e1",
"document_properties": "https://writer.zoho.com/api/v1/documents/ponazaad72ae3cb0143aca0763ecd5acb87e1",
"lastmodified_by": [
{
"email_id": "amelia@zylker.com",
"profile_photo": "https://contacts.zoho.com/file?t=user&ID=4579020&fs=thumb",
"user_id": "4579020",
"display_name": "Amelia"
}
]
}