Insert a row into a table

Inserts a new row into a table in a Word document.

Insert a row into a table in a Word document REST API

Server: https://api.aspose.cloud/v4.0

Method Endpoint
PUT /words/online/post/{nodePath}/rows
Name Location Type Required Description
NodePath Path string Optional The path to the table in the document tree.
DestFileName Query string Optional Result path of the document after the operation. If this parameter is omitted then result of the operation will be saved as the source document.
EncryptedPassword Query string Optional Password of protected Word document. Use the parameter to pass an encrypted password for direct calls of API. See SDK code for encyption details.
LoadEncoding Query string Optional Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
OpenTypeSupport Query boolean Optional The value indicates whether OpenType support is on.
Password Query string Optional Password of protected Word document. Use the parameter to pass a password via SDK. SDK encrypts it automatically. We don’t recommend to use the parameter to pass a plain password for direct call of API.
RevisionAuthor Query string Optional Initials of the author to use for revisions.If you set this parameter and then make some changes to the document programmatically, save the document and later open the document in MS Word you will see these changes as revisions.
RevisionDateTime Query string Optional The date and time to use for revisions.
Document Formdata file Required The document.
Row Formdata TableRowInsert Required Table row parameters.

Response

Response model: TableRowResponse

Field Type Description
Model TableRowResponse The REST response with a table row.
Document FilesCollection The document after modification.

Error reference

Status Code Description Resolution
400 bad_request Invalid parameter value or missing required field Check the parameter format and ensure all required fields are provided
401 unauthorized Missing or invalid access token Obtain a new access token via the authentication endpoint
403 forbidden Access to the requested resource is denied Verify that the access token has the required permissions
404 not_found The requested resource does not exist Check the resource ID or path for typos
429 rate_limited Too many requests — rate limit exceeded Wait for the Retry-After period before making another request
500 internal_error An unexpected server error occurred Retry the request after a short delay; contact support if the issue persists

Usage examples

REST API

SDK

See Also

  • Cloud SDKs — Create, Edit, Convert and Render Word documents via REST API.