Space Docs
Domain Model

Credential

Fields

FieldTypeRequiredDefaultDescription
idstring.uuidYes—Id
createdAtstring.date-timeYes—Created at
updatedAtstring.date-timeYes—Updated at
workspaceIdstringYes—ID of the associated workspace
siteIdstringYes—ID of the associated site
systemIdstringNo—ID of the associated system
credentialTypeenum(card, pin, fob, biometric, master_code, installer_code, other)Yes—Credential type
credentialIdentifierstringYes—Credential identifier
assignedPersonNamestringYes—Assigned person name
assignedPersonTypeenum(employee, customer_contact, vendor, temporary, system_account)Yes—Assigned person type
contactIdstringNo—ID of the associated contact
accessGroupsunknownYes—Access groups
activationDatestring.date-timeYes—Activation date
expirationDatestring.date-timeNo—Expiration date
approvalStatusenum(pending, approved, denied)Yes—Approval status
revocationStatusenum(active, revoked, suspended, expired)Yes—Revocation status
requestedBystringNo—Requested by
approvedBystringNo—Approved by
revokedBystringNo—Revoked by
revokedAtstring.date-timeNo—Revoked at
revocationReasonstringNo—Revocation reason
auditNotesstringNo—Audit notes
metadataunknownNo—Metadata
visibilityModeunknownYes—Visibility mode

Create Schema

Fields accepted when creating a new record:

FieldTypeRequiredDefaultDescription
workspaceIdstringNo—ID of the associated workspace
siteIdstringYes—ID of the associated site
systemIdstringNo—ID of the associated system
credentialTypeenum(card, pin, fob, biometric, master_code, installer_code, other)Yes—Credential type
credentialIdentifierstringYes—Credential identifier
assignedPersonNamestringYes—Assigned person name
assignedPersonTypeenum(employee, customer_contact, vendor, temporary, system_account)Yes—Assigned person type
contactIdstringNo—ID of the associated contact
accessGroupsunknownYes[]Access groups
activationDatestring.date-timeYes—Activation date
expirationDatestring.date-timeNo—Expiration date
approvalStatusenum(pending, approved, denied)Yes"pending"Approval status
revocationStatusenum(active, revoked, suspended, expired)Yes"active"Revocation status
requestedBystringNo—Requested by
approvedBystringNo—Approved by
revokedBystringNo—Revoked by
revokedAtstring.date-timeNo—Revoked at
revocationReasonstringNo—Revocation reason
auditNotesstringNo—Audit notes
metadataunknownNo—Metadata
visibilityModeunknownNo—Visibility mode

Update Schema

All fields are optional when updating:

FieldTypeRequiredDefaultDescription
siteIdstringNo—ID of the associated site
systemIdstringNo—ID of the associated system
credentialTypeenum(card, pin, fob, biometric, master_code, installer_code, other)No—Credential type
credentialIdentifierstringNo—Credential identifier
assignedPersonNamestringNo—Assigned person name
assignedPersonTypeenum(employee, customer_contact, vendor, temporary, system_account)No—Assigned person type
contactIdstringNo—ID of the associated contact
accessGroupsunknownNo—Access groups
activationDatestring.date-timeNo—Activation date
expirationDatestring.date-timeNo—Expiration date
approvalStatusenum(pending, approved, denied)No—Approval status
revocationStatusenum(active, revoked, suspended, expired)No—Revocation status
requestedBystringNo—Requested by
approvedBystringNo—Approved by
revokedBystringNo—Revoked by
revokedAtstring.date-timeNo—Revoked at
revocationReasonstringNo—Revocation reason
auditNotesstringNo—Audit notes
metadataunknownNo—Metadata

On this page