Templates: deleteDocumentPage

Deletes a page from a document in a template based on the page number.

Request

HTTP request

DELETE /v2.1/accounts/{accountId}/templates/{templateId}/documents/{documentId}/pages/{pageNumber}

Parameters

Parameter NameValueDescription
Path Parameters
accountIdstring

The external account number (int) or account ID GUID.

documentIdstring

The ID of the document being accessed.

pageNumberstring

The page number being accessed.

templateIdstring

The ID of the template.

Request Body

pageRequest

Responses

CodeDescriptionReference
200

Successful response.

400

Error encountered.

errorDetails

SDK Method

Templates::deleteDocumentPage

Definitions

errorDetails

This object describes errors that occur. It is only valid for responses, and ignored in requests.

errorCodestring

A code associated with the error condition.

messagestring

A brief message describing the error condition.

pageRequest

passwordstring

The user's encrypted password hash.

rotatestring

Sets the direction the page image is rotated. The possible settings are: left or right

Examples

Generic JSON Request

Request
{
  "rotate": "sample string 1",
  "password": "sample string 2"
}
Generic XML Request

Request
<pageRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.docusign.com/restapi">
  <password>sample string 2</password>
  <rotate>sample string 1</rotate>
</pageRequest> 
}} />