24.0.0 API Changelog
Breaking changes
Photo must be uploaded using the correct endpoint. This affects endpoints
POST /usersandPUT /users/:id- there the specified file hash in the photo object must be obtained from endpointPOST /files/photo. In case the photo is uploaded and used at once (e.g.PUT /configuration/images), nothing changes. Also one photo file hash cannot be used more then once.Signatures and initials must be uploaded using the correct endpoint, that is
POST /files/signatureandPOST /files/initialsfor internal user, andPOST /share/upload/initialsandPOST/share/upload/signaturefor the external one. Otherwise they will not be able to be assigned to the internal user (usingPOST /configuration/imagesorPUT /users/:id/upload), nor will be able to be used during the signing (this applies to external user as well).Stamp for the internal user must be uploaded using the general endpoint
POST /files/saveFile. For the external recipient, there is a new endpointPOST /share/upload/stampand the stamp must be uploaded using this endpoint, otherwise the stamp won't be usable for signing.When creating a new document definition (endpoint
POST /definitions/documents/name) where is the propertytemplateFilespecified; and when this property is replaced using the endpointPUT /definitions/documents/:name, it will be necessary to use newly uploaded, not used file.All photos used in contacts have to be unique, unused and uploaded using the endpoint
POST /files/photo. This affects endpointsPOST /contactsandPUT /contacts.All photos used in enums have to be unique, unused and uploaded using the endpoint
POST /files/photo. All other files used in enums have to be unique, unused and uploaded using the endpointPOST /files/saveFile. This affects endpointsPOST /enumsandPUT /enums/:name/record.Templates no longer receive property
thumbnail, it will be created automatically.Property
filespecified in a template has to be either unused, unique file hash (uploaded usingPOST /files/saveFile), or there must be specified body boolean propertycloneFilein the request. This affects endpointPOST /templatesandPUT /templates.Drafts no longer receive properties
barcodeandthumbnails. This affects endpointsPOST /draftsandPUT /drafts/:id/:version.Endpoint
PUT /drafts/:id/:versionnow accepts body boolean propertiescloneMainFileandcloneFiles. These work in the same way as in the endpointPOST /drafts.In the endpoints
PUT /documents/:versionandPUT /documents/edit/:versionall the newly specified attachments (pathbody.filein the content body) must be unused files, or used in a draft only. Additionally, if the main file is changed (only for external documents, pathbody.pdfFilein the content body), it must be an unused file, or used in a draft only.In the endpoints
POST /documentsandPOST /documents/bulk/createall specified attachments (pathbody.filein the content body) must be unused files, or used in a draft only, or the propertyoptionalData.cloneFilesmust be set totrue. Additionally, if the main file is specified (only for external documents, pathbody.pdfFile, orbody.bulkFilesin the content body), it must be an unused file, or used in a draft only, or the propertyoptionalData.cloneMainFilemust be set totrue.In all signature / annotate / WF execute endpoints the specified signature data must comply with the following:
All specified signatures (in the
signaturesfield) must be uploaded using the correct endpoint (POST /files/signaturefor the internal user orPOST /share/upload/signaturefor the external recipient).All specified initials (in the
signaturesfield) must be uploaded using the correct endpoint (POST /files/initialsfor the internal user orPOST /share/upload/initialsfor the external recipient).All specified stamps (in the
signaturesfield) must be uploaded using the correct endpoint (POST /files/saveFilefor the internal user orPOST /share/upload/stampfor the external recipient).All specified images (in the
imagesfield) must be unused files uploaded using the correct endpoint (POST /files/saveFilefor the internal user orPOST /share/upload/filefor the external recipient), or it must be an exiting documentbarcodefile. Same file hashes in a single request call are allowed.These changes affects the following endpoints:
POST /documents,POST /documents/bulk/create,PUT /documents/:version,PUT /documents/sign/:version,PUT /documents/annotate/:version,POST /share,POST /share/execute,PUT /share/document/sign/:version,PUT /share/rejectandPOST /inbox/action.
Counters
Endpoint
PUT /counterscan be used only by super-admin.
Non-Breaking changes
Shares
Endpoint POST /share now accepts an optional property oauthFactors (path data[*] in content body) with structure [{ type: string, value: string }].
It can be used to require one or more of the UAE Pass verification factors (
email,phoneNumber,emiratesId).When not specified, defaults to
emailfactor only.When the
emailfactor is specified, the value must match the recipient’s email.Other than
emailfactors can be specified only when theallowedOAuthsarray contains the valueuaePassonly.All the specified factors are checked.
Endpoint PUT /share now accepts the optional array oauthFactors (path data[*] in content body), serves for editing the UAE Pass verification factors. Same constrains as above applies.
Endpoint PUT /share/delegate now accepts the optional array oauthFactors (in root of the content body object) to update the UAE Pass verification factors in case of the document delegation to the other external recipient. When not specified, it will delegate with email factor only.