ZRM Docs
Domain Model

Credential

Fields

FieldTypeRequiredDefaultDescription
idstring.uuidYesId
createdAtstring.date-timeYesCreated at
updatedAtstring.date-timeYesUpdated at
workspaceIdstringYesID of the associated workspace
siteIdstringYesID of the associated site
systemIdstringNoID of the associated system
credentialTypeenum(card, pin, fob, biometric, master_code, installer_code, other)YesCredential type
credentialIdentifierstringYesCredential identifier
assignedPersonNamestringYesAssigned person name
assignedPersonTypeenum(employee, customer_contact, vendor, temporary, system_account)YesAssigned person type
contactIdstringNoID of the associated contact
accessGroupsunknownYesAccess groups
activationDatestring.date-timeYesActivation date
expirationDatestring.date-timeNoExpiration date
approvalStatusenum(pending, approved, denied)YesApproval status
revocationStatusenum(active, revoked, suspended, expired)YesRevocation status
requestedBystringNoRequested by
approvedBystringNoApproved by
revokedBystringNoRevoked by
revokedAtstring.date-timeNoRevoked at
revocationReasonstringNoRevocation reason
auditNotesstringNoAudit notes
metadataunknownNoMetadata
visibilityModeenum(global, workspace_local, shared)YesVisibility mode

Create Schema

Fields accepted when creating a new record:

FieldTypeRequiredDefaultDescription
workspaceIdstringNoID of the associated workspace
siteIdstringYesID of the associated site
systemIdstringNoID of the associated system
credentialTypeenum(card, pin, fob, biometric, master_code, installer_code, other)YesCredential type
credentialIdentifierstringYesCredential identifier
assignedPersonNamestringYesAssigned person name
assignedPersonTypeenum(employee, customer_contact, vendor, temporary, system_account)YesAssigned person type
contactIdstringNoID of the associated contact
accessGroupsunknownYes[]Access groups
activationDatestring.date-timeYesActivation date
expirationDatestring.date-timeNoExpiration date
approvalStatusenum(pending, approved, denied)Yes"pending"Approval status
revocationStatusenum(active, revoked, suspended, expired)Yes"active"Revocation status
requestedBystringNoRequested by
approvedBystringNoApproved by
revokedBystringNoRevoked by
revokedAtstring.date-timeNoRevoked at
revocationReasonstringNoRevocation reason
auditNotesstringNoAudit notes
metadataunknownNoMetadata
visibilityModeenum(global, workspace_local, shared)Yes"workspace_local"Visibility mode

Update Schema

All fields are optional when updating:

FieldTypeRequiredDefaultDescription
siteIdstringNoID of the associated site
systemIdstringNoID of the associated system
credentialTypeenum(card, pin, fob, biometric, master_code, installer_code, other)NoCredential type
credentialIdentifierstringNoCredential identifier
assignedPersonNamestringNoAssigned person name
assignedPersonTypeenum(employee, customer_contact, vendor, temporary, system_account)NoAssigned person type
contactIdstringNoID of the associated contact
accessGroupsunknownNo[]Access groups
activationDatestring.date-timeNoActivation date
expirationDatestring.date-timeNoExpiration date
approvalStatusenum(pending, approved, denied)No"pending"Approval status
revocationStatusenum(active, revoked, suspended, expired)No"active"Revocation status
requestedBystringNoRequested by
approvedBystringNoApproved by
revokedBystringNoRevoked by
revokedAtstring.date-timeNoRevoked at
revocationReasonstringNoRevocation reason
auditNotesstringNoAudit notes
metadataunknownNoMetadata

On this page