Action: DOMExists

Purpose: Determine whether or not a specified DocumentName/DocumentOID exists

Action-specific name/value pairs:

Parameter Name Description
DocumentName or DocumentOID The Name or OID of the document.

Alternatively, the parameters above can be incorporated into a single JSON string and specified using the parameter name JSON, eg:

{DocumentName:"myExample"}

Example Request

Action=DOMExists
&DocumentName=myExample
&MDBAccessKeyId=[your access key id]
&Signature=[computed signature]
&SignatureMethod=HmacSHA256
&SignatureVersion=2
&Timestamp=2009-06-14T13%3A19%3A41
&Version=2009-04-15
&db=mdbx

or:

Action=DOMExists
&JSON=%7BDocumentName%3A%22myExample%22%7D
&MDBAccessKeyId=[your access key id]
&OutputFormat=JSON
&Signature=[computed signature]
&SignatureMethod=HmacSHA256
&SignatureVersion=2
&Timestamp=2009-06-14T13%3A19%3A41
&Version=2009-04-15
&db=mdbx

Example Response

XML

<?xml version='1.0'?>
<DOMExistsResponse xmlns="http://mdbx.mgateway.com/doc/2009-06-05/">
   <DOMExistsResult>
      <DocumentExists>
         true
      </DocumentExists>
   </DOMExistsResult>
</DOMExistsResponse>

JSON (ie if OutputFormat=JSON specified in the Request)

{ok:true}

Possible response values are true or false.