Add

This REST API adds a Paragraph.

Request parameters are the following:

Parameter Name Type Query String/HTTPBody Description
insertBeforeNode string Query String: insertBeforeNode=“nodeId” Paragraph will be inserted before node with id=“nodeId”.
text string Request body A paragraph will be inserted with text “text”.

Usage examples with cURL and Postman

~/{file-name}/paragraph/{index}
~/{file-name}/sections/{sectionIndex}/paragraphs/{index}
~/{file-name}/sections/{sectionIndex}/headersFooters/{headerFooterIndex}/paragraphs/{index}

, where:

  • {file-name} is a filename of a document.
  • {sectionIndex} is an index of a section.
  • {headerFooterIndex} is an index of a section, that contains headers and footers.
  • {index} is an index of a specific paragraph.

You can carry out REST API interactions using cURL and Postman. Please read these instructions to receive a personal JWT_TOKEN for authorization.

Aspose.Words Cloud SDK Family

Using SDK is the best way to speed up the development. Please go to the GitHub repository to explore a wide family of our Cloud SDKs. These powerful libraries take care of all low-level programming details and let you focus on your primary tasks.

Usage examples in Python, Java, C#, etc.

The following code samples show how to interact with the REST API using almost any mainstream programming language.

You can find a lot of other examples in Python, Java, C#, JavaScript, PHP, C++, Golang, Ruby, Swift, Dart on GitHub. All codes are thoroughly tested and ready for production use.