Deletes a document type definition from the system.
/srv.asmx/DeleteDocumentTypeDef
/srv.asmx/DeleteDocumentTypeDef?authenticationTicket=...&documentTypeId=.../srv.asmx/DeleteDocumentTypeDef (form data)http://tempuri.org/DeleteDocumentTypeDef| Parameter | Type | Required | Description |
|---|---|---|---|
authenticationTicket |
string | Yes | Authentication ticket obtained from AuthenticateUser |
documentTypeId |
int | Yes | ID of the document type to delete |
<root success="true" />
<root success="false" error="[ErrorCode] Error message" />
POST /srv.asmx/DeleteDocumentTypeDef HTTP/1.1
Content-Type: application/x-www-form-urlencoded
authenticationTicket=abc123&documentTypeId=5
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<DeleteDocumentTypeDef xmlns="http://tempuri.org/">
<authenticationTicket>abc123</authenticationTicket>
<documentTypeId>5</documentTypeId>
</DeleteDocumentTypeDef>
</soap:Body>
</soap:Envelope>
<?xml version="1.0" encoding="utf-8"?>
<root success="true" />
GetDocumentTypes - List all document typesCreateDocumentTypeDef - Create a new document typeUpdateDocumentTypeDef - Update an existing document typeCommon error responses:
[901]Session expired or Invalid ticket - Invalid authentication ticket[2730]Insufficient rights. Anonymous users cannot perform this action - User is not authenticatedDocument type not found - The specified documentTypeId does not existDocument type is in use - Cannot delete because documents are using this type