24.0.0 API Changelog
Breaking changes
Photo must be uploaded using the correct endpoint. This affects endpoints
POST /users
andPUT /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/signature
andPOST /files/initials
for internal user, andPOST /share/upload/initials
andPOST/share/upload/signature
for the external one. Otherwise they will not be able to be assigned to the internal user (usingPOST /configuration/images
orPUT /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/stamp
and 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 propertytemplateFile
specified; 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 /contacts
andPUT /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 /enums
andPUT /enums/:name/record
.Templates no longer receive property
thumbnail
, it will be created automatically.Property
file
specified in a template has to be either unused, unique file hash (uploaded usingPOST /files/saveFile
), or there must be specified body boolean propertycloneFile
in the request. This affects endpointPOST /templates
andPUT /templates
.Drafts no longer receive properties
barcode
andthumbnails
. This affects endpointsPOST /drafts
andPUT /drafts/:id/:version
.Endpoint
PUT /drafts/:id/:version
now accepts body boolean propertiescloneMainFile
andcloneFiles
. These work in the same way as in the endpointPOST /drafts
.In the endpoints
PUT /documents/:version
andPUT /documents/edit/:version
all the newly specified attachments (pathbody.file
in 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.pdfFile
in the content body), it must be an unused file, or used in a draft only.In the endpoints
POST /documents
andPOST /documents/bulk/create
all specified attachments (pathbody.file
in the content body) must be unused files, or used in a draft only, or the propertyoptionalData.cloneFiles
must be set totrue
. Additionally, if the main file is specified (only for external documents, pathbody.pdfFile
, orbody.bulkFiles
in the content body), it must be an unused file, or used in a draft only, or the propertyoptionalData.cloneMainFile
must be set totrue
.In all signature / annotate / WF execute endpoints the specified signature data must comply with the following:
All specified signatures (in the
signatures
field) must be uploaded using the correct endpoint (POST /files/signature
for the internal user orPOST /share/upload/signature
for the external recipient).All specified initials (in the
signatures
field) must be uploaded using the correct endpoint (POST /files/initials
for the internal user orPOST /share/upload/initials
for the external recipient).All specified stamps (in the
signatures
field) must be uploaded using the correct endpoint (POST /files/saveFile
for the internal user orPOST /share/upload/stamp
for the external recipient).All specified images (in the
images
field) must be unused files uploaded using the correct endpoint (POST /files/saveFile
for the internal user orPOST /share/upload/file
for the external recipient), or it must be an exiting documentbarcode
file. 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/reject
andPOST /inbox/action
.
Counters
Endpoint
PUT /counters
can 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
email
factor only.When the
email
factor is specified, the value must match the recipient’s email.Other than
email
factors can be specified only when theallowedOAuths
array contains the valueuaePass
only.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.