Download OpenAPI specification:
Deletes a document specified by Id. Only a person with "WRITE" access can successfully call this endpoint.
| documentId required | integer <int32> |
| Accept-Language | string The ISO 639-1 language to use for localizable data. |
{- "code": "BadRequest",
- "subCode": "NA",
- "message": "The request was not in the required format",
- "correlationId": "30d3ebc0b5cb47b0889850bbdfe4aec6"
}Retrieves a document by Document Id. Only a person with "READ" access can successfully call this endpoint.
| documentId required | integer <int32> |
| Accept-Language | string The ISO 639-1 language to use for localizable data. |
{- "id": 0,
- "filename": "string",
- "digitalSignature": "string",
- "createDate": "2019-08-24T14:15:22Z",
- "contractId": "dbf32426-cf38-4818-9c6e-3230d889fa51",
- "customAttributes": "string",
- "externalId": "string",
- "dmsDocumentMetadataId": 0,
- "validTill": "2019-08-24T14:15:22Z",
- "isActive": true,
- "extension": "string",
- "mimeType": "string",
- "languageTwoLetterIsoCode": "string",
- "lastUpdatedDate": "2019-08-24T14:15:22Z",
- "documentMetadata": {
- "id": 0,
- "name": "string",
- "isMultiInstance": true,
- "outputFilename": "string",
- "documentReferenceId": "string",
- "isActive": true,
- "allowJointOwnership": true,
- "documentCategory": {
- "id": 0,
- "name": "string"
}, - "documentType": {
- "id": 0,
- "name": "string"
}
}, - "file": "string"
}Uploads a new version of an existing document or updates document registration. Note the following:
Possible ApiError.SubCode values:
FileNotInWhitelist: The format of the provided file is not in the whitelist defined in DMS settings.
| documentId required | integer <int32> |
| Accept-Language | string The ISO 639-1 language to use for localizable data. |
| filename | string or null |
| customAttributes | string or null |
| externalId | string or null Set a unique external-id for the document. A document may later be fetched by the external-id alone. |
| validTill | string or null <date-time> Set validity of the document. This field is informational only and does not effect the active state of the document. |
| file | string or null <byte> If uploading a file, set the uploaded file in base64 format. |
| fileType | string or null |
{- "filename": "string",
- "customAttributes": "string",
- "externalId": "string",
- "validTill": "2019-08-24T14:15:22Z",
- "file": "string",
- "fileType": "string"
}{- "code": "BadRequest",
- "subCode": "NA",
- "message": "The request was not in the required format",
- "correlationId": "30d3ebc0b5cb47b0889850bbdfe4aec6"
}Retrieves a document by External Id. Only a person with "READ" access can successfully call this endpoint.
| externalId required | string |
| Accept-Language | string The ISO 639-1 language to use for localizable data. |
{- "id": 0,
- "filename": "string",
- "digitalSignature": "string",
- "createDate": "2019-08-24T14:15:22Z",
- "contractId": "dbf32426-cf38-4818-9c6e-3230d889fa51",
- "customAttributes": "string",
- "externalId": "string",
- "dmsDocumentMetadataId": 0,
- "validTill": "2019-08-24T14:15:22Z",
- "isActive": true,
- "extension": "string",
- "mimeType": "string",
- "languageTwoLetterIsoCode": "string",
- "lastUpdatedDate": "2019-08-24T14:15:22Z",
- "documentMetadata": {
- "id": 0,
- "name": "string",
- "isMultiInstance": true,
- "outputFilename": "string",
- "documentReferenceId": "string",
- "isActive": true,
- "allowJointOwnership": true,
- "documentCategory": {
- "id": 0,
- "name": "string"
}, - "documentType": {
- "id": 0,
- "name": "string"
}
}, - "file": "string"
}Uploads a new version of an existing document to DMS as a stream. The values need to be passed as multipart/form-data and the actual document needs to be passed as the last parameter and as a stream. Note the following:
| documentId required | integer <int32> |
| Accept-Language | string The ISO 639-1 language to use for localizable data. |
| filename required | string <string> The name of the document in the storage. |
| externalId | string <string> The external ID of the document. Must be unique if passed. |
| customAttributes | string <string> Custom attributes of the document |
| validTill | string <date-time> The validity date of the document. This field does not effect the active state of the document. |
| file required | string <binary> The document stream to upload. |
{- "code": "BadRequest",
- "subCode": "NA",
- "message": "The request was not in the required format",
- "correlationId": "30d3ebc0b5cb47b0889850bbdfe4aec6"
}Updates document metadata of an existing document. The caller will need to have “WRITE” access to both the old and the new metadata, or to the document itself. If both metadata-id and metadata-reference-id are supplied, metadata-id takes precedence.
| documentId required | integer <int32> |
| Accept-Language | string The ISO 639-1 language to use for localizable data. |
| documentMetadataId | integer or null <int32> |
| documentMetadataReferenceId | string or null |
{- "documentMetadataId": 0,
- "documentMetadataReferenceId": "string"
}{- "code": "BadRequest",
- "subCode": "NA",
- "message": "The request was not in the required format",
- "correlationId": "30d3ebc0b5cb47b0889850bbdfe4aec6"
}Uploads or registers a document to DMS. Note the following:
Possible ApiError.SubCode values:
FileNotInWhitelist: The format of the provided file is not in the whitelist defined in DMS settings.
| Accept-Language | string The ISO 639-1 language to use for localizable data. |
The document to save
| filename | string or null |
| contractId | string or null <uuid> Set link to an entity in DFS (portfolio, instrument, credit request) to later be found through search. |
| ownerIds | Array of integers or null <int32> [ items <int32 > ] Set owners of a document. A client-type document must have at least one contact as owner. General-type documents should not have contacts as owners. |
| customAttributes | string or null |
| externalId | string or null Set a unique external-id for the document. A document may later be fetched by the external-id alone. |
| validTill | string or null <date-time> Set validity of the document. This field is informational only and does not effect the active state of the document. |
| dmsDocumentMetadataId | integer <int32> Set under which metadata will the document be using metadata id. If both metadata id and metadata reference id are supplied, this field takes precedence. |
| metadataReferenceId | string or null Set under which metadata will the document be using metadata reference id. |
| languageTwoLetterIsoCode | string or null |
| file | string or null <byte> If uploading a file, set the uploaded file in base64 format. |
| proxyParticipantUid | string or null <uuid> If registering a proxied document, set the proxy-participant-uid. |
| fileType | string or null |
| referenceDocumentId | integer or null <int32> If registering a referenced document, set the reference-document-id. |
{- "filename": "string",
- "contractId": "dbf32426-cf38-4818-9c6e-3230d889fa51",
- "ownerIds": [
- 0
], - "customAttributes": "string",
- "externalId": "string",
- "validTill": "2019-08-24T14:15:22Z",
- "dmsDocumentMetadataId": 0,
- "metadataReferenceId": "string",
- "languageTwoLetterIsoCode": "string",
- "file": "string",
- "proxyParticipantUid": "7fec805a-0620-484b-855b-42da4bcb4859",
- "fileType": "string",
- "referenceDocumentId": 0
}0Uploads a document to DMS as a stream. The values need to be passed as multipart/form-data and the actual document needs to be passed as the last parameter and as a stream. Note the following:
| Accept-Language | string The ISO 639-1 language to use for localizable data. |
| filename required | string <string> The name of the document in the storage. |
| contractId | string <uuid> Links the document to a contract in DFS. |
| externalId | string <string> The external ID of the document. Must be unique if passed. |
| ownerIds | Array of integers <int32> [ items <int32 > ] The persons owning the document. |
| customAttributes | string <string> Custom attributes of the document |
| validTill | string <date-time> The validity date of the document. This field does not effect the active state of the document. |
| dmsDocumentMetadataId | integer <int32> Default: 0 The metadata ID of the document. If both dmsDocumentMetadataId and metadataReferenceId are supplied, this field takes precedence. |
| metadataReferenceId | string <string> The metadata reference ID of the document. If both dmsDocumentMetadataId and metadataReferenceId are supplied, the field dmsDocumentMetadataId takes precedence. |
| languageTwoLetterIsoCode | string <string> Set a specific language for the document. |
| file required | string <binary> The document stream to upload. |
0Generates a digital signature.
| Accept-Language | string The ISO 639-1 language to use for localizable data. |
| content | string or null <byte> |
{- "content": "string"
}{- "digSig": "string"
}Search documents by given criteria. The caller cannot retrieve documents for which they does not have “READ” access to. Note that specifying specific persons in personAssignment parameter is required when retrieving documents through Hierarchy access policy level or when applications retrieve documents when data segregation is enabled.
| Accept-Language | string The ISO 639-1 language to use for localizable data. |
| page | integer <int32> |
| pageSize | integer <int32> |
| sortOrder | string (SortOrder) Enum: "Ascending" "Descending" |
| sortBy | string or null sort by one of the following fields: id (default), filename, createdate, DocumentCategoryId, DocumentMetadataId, mimeType, ValidTill |
| documentTypeId | integer or null <int32> filter by document type |
| documentMetadataIds | Array of integers or null <int32> [ items <int32 > ] filter by document metadata |
| documentCategoryIds | Array of integers or null <int32> [ items <int32 > ] filter by document category |
| createDateFrom | string or null <date-time> filter by CreateDateFrom |
| createDateTo | string or null <date-time> filter by CreateDateTo |
| contractId | string or null <uuid> filter by entities linked to documents. |
| isActive | boolean or null filter by status of the document |
| filename | string or null filter by file name |
| languageTwoLetterIsoCode | string or null filter by language |
object (PersonAssignment) filter by specific people with assignment to the document, either as owners or as people with direct document access. If no persons are specified, hierarchy access to documents will not be checked |
{- "page": 0,
- "pageSize": 0,
- "sortOrder": "Ascending",
- "sortBy": "string",
- "documentTypeId": 0,
- "documentMetadataIds": [
- 0
], - "documentCategoryIds": [
- 0
], - "createDateFrom": "2019-08-24T14:15:22Z",
- "createDateTo": "2019-08-24T14:15:22Z",
- "contractId": "dbf32426-cf38-4818-9c6e-3230d889fa51",
- "isActive": true,
- "filename": "string",
- "languageTwoLetterIsoCode": "string",
- "personAssignment": {
- "ids": [
- 0
], - "scope": "Owner"
}
}{- "results": [
- {
- "id": 0,
- "filename": "string",
- "digitalSignature": "string",
- "createDate": "2019-08-24T14:15:22Z",
- "contractId": "dbf32426-cf38-4818-9c6e-3230d889fa51",
- "customAttributes": "string",
- "externalId": "string",
- "dmsDocumentMetadataId": 0,
- "validTill": "2019-08-24T14:15:22Z",
- "isActive": true,
- "extension": "string",
- "mimeType": "string",
- "languageTwoLetterIsoCode": "string",
- "lastUpdatedDate": "2019-08-24T14:15:22Z",
- "documentMetadata": {
- "id": 0,
- "name": "string",
- "isMultiInstance": true,
- "outputFilename": "string",
- "documentReferenceId": "string",
- "isActive": true,
- "allowJointOwnership": true,
- "documentCategory": {
- "id": 0,
- "name": "string"
}, - "documentType": {
- "id": 0,
- "name": "string"
}
}
}
], - "page": 0,
- "pageSize": 0,
- "pageCount": 0,
- "totalCount": 0
}Retrieves a list of access policy levels supported by DMS.
| Accept-Language | string The ISO 639-1 language to use for localizable data. |
[- {
- "id": 0,
- "name": "string"
}
]Retrieves a list of persons and their assigned access policy for a specified document. Only a member with “MANAGE” access can successfully call this endpoint.
| documentId required | integer <int32> The Document ID |
| Accept-Language | string The ISO 639-1 language to use for localizable data. |
[- {
- "personId": 0,
- "accessPolicy": {
- "id": 0,
- "name": "string"
}
}
]Assign access policies of specific persons to the specified document. Only a member with “MANAGE” access can successfully call this endpoint. A successful call will override existing person-specific access policies assigned to this document.
| documentId required | integer <int32> |
| Accept-Language | string The ISO 639-1 language to use for localizable data. |
Array of objects or null (UpsertDocumentAccessPolicyRequestItem) |
{- "accessPolicyItems": [
- {
- "personId": 0,
- "accessPolicyId": 0
}
]
}{- "code": "BadRequest",
- "subCode": "NA",
- "message": "The request was not in the required format",
- "correlationId": "30d3ebc0b5cb47b0889850bbdfe4aec6"
}Retrieves a list of access policy levels and their assigned access policy for a specified metadata.
| metadataId required | integer <int32> The Metadata ID |
| Accept-Language | string The ISO 639-1 language to use for localizable data. |
[- {
- "accessPolicy": {
- "id": 0,
- "name": "string"
}, - "accessPolicyLevel": {
- "id": 0,
- "name": "string"
}
}
]Assign access policies to access-policy-levels for a specified metadata.
| metadataId required | integer <int32> |
| Accept-Language | string The ISO 639-1 language to use for localizable data. |
Array of objects or null (UpsertMetadataAccessPolicyRequestItem) |
{- "accessPolicies": [
- {
- "accessPolicyLevelId": 0,
- "accessPolicyId": 0
}
]
}{- "code": "BadRequest",
- "subCode": "NA",
- "message": "The request was not in the required format",
- "correlationId": "30d3ebc0b5cb47b0889850bbdfe4aec6"
}Links an associated entity to an existing segregated entity. Documents with the specified associated entity will be segregated according to the linked segregated entity.
| Accept-Language | string The ISO 639-1 language to use for localizable data. |
| associatedEntityUid | string <uuid> |
| segregatedEntityUid | string <uuid> |
{- "associatedEntityUid": "20c927db-1f3e-4bd6-be8d-c626569916bc",
- "segregatedEntityUid": "93245351-6fb1-4c54-ac0c-9a02143800cc"
}{- "code": "BadRequest",
- "subCode": "NA",
- "message": "The request was not in the required format",
- "correlationId": "30d3ebc0b5cb47b0889850bbdfe4aec6"
}Links a new segregated entity to participants. Documents with associated entities linked to the specified segregated entity will be segregated according to the linked participants.
| Accept-Language | string The ISO 639-1 language to use for localizable data. |
| segregatedEntityUid | string <uuid> |
| participantUids | Array of strings or null <uuid> [ items <uuid > ] |
{- "segregatedEntityUid": "93245351-6fb1-4c54-ac0c-9a02143800cc",
- "participantUids": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
}{- "code": "BadRequest",
- "subCode": "NA",
- "message": "The request was not in the required format",
- "correlationId": "30d3ebc0b5cb47b0889850bbdfe4aec6"
}Deletes the document category specified by Id. If it is a parent document category it will also delete its children
| categoryId required | integer <int32> |
| Accept-Language | string The ISO 639-1 language to use for localizable data. |
{- "code": "BadRequest",
- "subCode": "NA",
- "message": "The request was not in the required format",
- "correlationId": "30d3ebc0b5cb47b0889850bbdfe4aec6"
}Retrieves a list of document categories.
| isActive | boolean |
| documentTypeId | integer <int32> |
| Accept-Language | string The ISO 639-1 language to use for localizable data. |
[- {
- "id": 0,
- "name": "string",
- "parentId": 0,
- "dmsDocumentTypeId": 0,
- "isActive": true,
- "key": "string"
}
]Creates a document category. An inactive category cannot be the parent of an active category.
| Accept-Language | string The ISO 639-1 language to use for localizable data. |
| name | string or null |
| parentId | integer or null <int32> |
| dmsDocumentTypeId | integer <int32> |
| isActive | boolean or null |
{- "name": "string",
- "parentId": 0,
- "dmsDocumentTypeId": 0,
- "isActive": true
}0Retrieves the document category specified by Id.
| categoryId required | integer <int32> |
| Accept-Language | string The ISO 639-1 language to use for localizable data. |
{- "id": 0,
- "name": "string",
- "parentId": 0,
- "dmsDocumentTypeId": 0,
- "isActive": true,
- "key": "string"
}Updates the document category specified by Id. An inactive category cannot be the parent of an active category and cannot be assigned to an active metadata.
| categoryId required | integer <int32> |
| Accept-Language | string The ISO 639-1 language to use for localizable data. |
| name | string or null |
| parentId | integer or null <int32> |
| dmsDocumentTypeId | integer <int32> |
| isActive | boolean or null |
{- "name": "string",
- "parentId": 0,
- "dmsDocumentTypeId": 0,
- "isActive": true
}{- "code": "BadRequest",
- "subCode": "NA",
- "message": "The request was not in the required format",
- "correlationId": "30d3ebc0b5cb47b0889850bbdfe4aec6"
}Deletes a metadata specified by Id.
| metadataId required | integer <int32> |
| Accept-Language | string The ISO 639-1 language to use for localizable data. |
{- "code": "BadRequest",
- "subCode": "NA",
- "message": "The request was not in the required format",
- "correlationId": "30d3ebc0b5cb47b0889850bbdfe4aec6"
}Retrieves a metadata by Id.
| metadataId required | integer <int32> |
| Accept-Language | string The ISO 639-1 language to use for localizable data. |
{- "id": 0,
- "name": "string",
- "isMultiInstance": true,
- "outputFilename": "string",
- "documentReferenceId": "string",
- "isActive": true,
- "allowJointOwnership": true,
- "documentCategory": {
- "id": 0,
- "name": "string"
}, - "documentType": {
- "id": 0,
- "name": "string"
}
}Updates the document metadata specified by Id. An inactive category cannot be assigned to an active metadata. Metadata may be inactivated even if there are active documents under it.
| metadataId required | integer <int32> |
| Accept-Language | string The ISO 639-1 language to use for localizable data. |
| name | string or null |
| isMultiInstance | boolean |
| dmsDocumentCategoryId | integer <int32> |
| outputFilename | string or null |
| documentReferenceId | string or null |
| allowJointOwnership | boolean |
| isActive | boolean or null |
{- "name": "string",
- "isMultiInstance": true,
- "dmsDocumentCategoryId": 0,
- "outputFilename": "string",
- "documentReferenceId": "string",
- "allowJointOwnership": true,
- "isActive": true
}{- "code": "BadRequest",
- "subCode": "NA",
- "message": "The request was not in the required format",
- "correlationId": "30d3ebc0b5cb47b0889850bbdfe4aec6"
}Retrieves a metadata by MetadataReferenceId.
| metadataReferenceId required | string |
| Accept-Language | string The ISO 639-1 language to use for localizable data. |
{- "id": 0,
- "name": "string",
- "isMultiInstance": true,
- "outputFilename": "string",
- "documentReferenceId": "string",
- "isActive": true,
- "allowJointOwnership": true,
- "documentCategory": {
- "id": 0,
- "name": "string"
}, - "documentType": {
- "id": 0,
- "name": "string"
}
}Creates an active document metadata. An inactive category cannot be assigned to an active metadata.
| Accept-Language | string The ISO 639-1 language to use for localizable data. |
| name | string or null |
| isMultiInstance | boolean |
| dmsDocumentCategoryId | integer <int32> |
| outputFilename | string or null |
| documentReferenceId | string or null |
| allowJointOwnership | boolean |
{- "name": "string",
- "isMultiInstance": true,
- "dmsDocumentCategoryId": 0,
- "outputFilename": "string",
- "documentReferenceId": "string",
- "allowJointOwnership": true
}0Lookup accessible document metadata by a given criteria.
| Accept-Language | string The ISO 639-1 language to use for localizable data. |
The lookup criteria
| documentType | string (DocumentType) Enum: "Client" "General" |
| documentCategoryIds | Array of integers or null <int32> [ items <int32 > ] |
| documentMetadataName | string or null |
| isActive | boolean or null |
| metadataAccessPolicy | string (MetadataAccessPolicyFlag) Enum: "Read" "Write" "Manage" "Any" |
{- "documentType": "Client",
- "documentCategoryIds": [
- 0
], - "documentMetadataName": "string",
- "isActive": true,
- "metadataAccessPolicy": "Read"
}[- {
- "id": 0,
- "name": "string",
- "documentCategoryId": 0,
- "isActive": true
}
]Searches through all document metadata by a given criteria.
| Accept-Language | string The ISO 639-1 language to use for localizable data. |
| page | integer <int32> |
| pageSize | integer <int32> |
| sortBy | string or null |
| sortOrder | string (SortOrder) Enum: "Ascending" "Descending" |
| searchTerm | string or null |
| searchMetadataBy | string (SearchMetadataBy) Enum: "Name" "OutputFilename" "All" |
| documentTypeIds | Array of integers or null <int32> [ items <int32 > ] |
| documentCategoryIds | Array of integers or null <int32> [ items <int32 > ] |
| isActive | boolean or null |
{- "page": 0,
- "pageSize": 0,
- "sortBy": "string",
- "sortOrder": "Ascending",
- "searchTerm": "string",
- "searchMetadataBy": "Name",
- "documentTypeIds": [
- 0
], - "documentCategoryIds": [
- 0
], - "isActive": true
}{- "results": [
- {
- "id": 0,
- "name": "string",
- "isMultiInstance": true,
- "outputFilename": "string",
- "documentReferenceId": "string",
- "isActive": true,
- "allowJointOwnership": true,
- "documentCategory": {
- "id": 0,
- "name": "string"
}, - "documentType": {
- "id": 0,
- "name": "string"
}
}
], - "page": 0,
- "pageSize": 0,
- "pageCount": 0,
- "totalCount": 0
}Creates a document set
| Accept-Language | string The ISO 639-1 language to use for localizable data. |
The document set to save
| name | string or null |
| key | string or null |
Array of objects or null (DocumentMetadata) |
{- "name": "string",
- "key": "string",
- "documentMetadata": [
- {
- "id": 0,
- "isMandatory": true
}
]
}0Retrieves document set
| documentSetId required | integer <int32> |
| Accept-Language | string The ISO 639-1 language to use for localizable data. |
{- "name": "string",
- "key": "string",
- "documentMetadata": [
- {
- "id": 0,
- "name": "string",
- "documentCategoryId": 0,
- "isMandatory": true
}
]
}Updates a document set
| documentSetId required | integer <int32> |
| Accept-Language | string The ISO 639-1 language to use for localizable data. |
| name | string or null |
| key | string or null |
Array of objects or null (DocumentMetadata) |
{- "name": "string",
- "key": "string",
- "documentMetadata": [
- {
- "id": 0,
- "isMandatory": true
}
]
}{- "code": "BadRequest",
- "subCode": "NA",
- "message": "The request was not in the required format",
- "correlationId": "30d3ebc0b5cb47b0889850bbdfe4aec6"
}Validates whether a person owns active documents under all mandatory metadata listed in a specific document set. Only documents which the calling person or app had “READ“ access to are considered. If a contract is specified, the check would be performed only for documents which have this contract set for them. When returning information on unfulfilled metadatas, note that non-mandatory metadata will be returned as well.
| ownerId required | integer <int32> |
| documentSetId required | integer <int32> |
| contractId | string <uuid> |
| Accept-Language | string The ISO 639-1 language to use for localizable data. |
{- "isFulfilled": true,
- "unfulfilledMetadataIds": [
- 0
]
}