Skip to end of metadata
Go to start of metadata
Contents Summary


This REST API allows you to add a paragraph to a document. The API returns added paragraph data in XML/JSON format. The request parameters are the following:

Parameter NameTypeQuery String/HTTPBodyDescription
insertBeforeNodestringQuery String: insertBeforeNode="nodeId"Paragraph will be inserted before node with id="nodeId".
textstringRequest bodyA paragraph will be inserted with text "text".

Resource URI

{file-name} is the name of the Word document containing elements.
{sectionIndex} is the index of a section that contains paragraphs.
{headerFooterIndex} is the index of a section that contains headers and footers.
{index} is the index of a specific paragraph.

Swagger UI lets you call this REST API directly from the browser.  

cURL Example



Using an SDK (API client) is the quickest way for a developer to speed up the development. An SDK takes care of a lot of low-level details of making requests and handling responses and lets you focus on writing code specific to your particular project. Check out our GitHub repository for a complete list of Aspose.Words Cloud SDKs along with working examples, to get you started in no time. Please check Available SDKs article to learn how to add an SDK to your project.

SDK Examples

  • No labels