createDocumentType

abstract suspend fun createDocumentType(name: String, personId: String? = null): DocumentType

Create custom document type.

Return

DocumentType

Parameters

name

document type name.

personId

person id for create new document type for person. An optional parameter.

Throws

when unauthorized.

DocumentTypesLimitExceededException

when document type reached the document type limit.

when name parameter is not valid.