Add

This REST API adds a Paragraph.

The 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”.

REST API

~/{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.

The OpenAPI Specification defines a publicly accessible programming interface and lets you carry out REST interactions directly from a web browser.

You can use cURL command-line tool to access Aspose.Words web services easily. The following example shows how to make calls to Cloud API with cURL.

Cloud SDK Family

Using an SDK is the best way to speed up the development. An SDK takes care of low-level details and lets you focus on your project tasks. Please check out the GitHub repository for a complete list of Aspose.Words Cloud SDKs.

The following code examples demonstrate how to make calls to Aspose.Words web services using various SDKs: