Skip to main content

Witness

Witness Object

FieldTypeDescription
idsnowflakethe witness's id
user_idsnowflakethe id of the user who signed
useruser objectthe user who signed as witness
typeobject typethe type of object witnessed
first_namestringthe witness's first name
last_namestringthe witness's last name
companystringthe witness's company
positionstringthe witness's position
signed_atISO8601 timestampwhen the witness signed
signed_methodwitness signed methodthe method used to sign

Work Item Witness Object

FieldTypeDescription
idsnowflakethe witness's id
work_item_idsnowflakethe id of the work item being witnessed
useruser objectthe user who signed as witness
typeobject typethe type of object witnessed
first_namestringthe witness's first name
last_namestringthe witness's last name
companystringthe witness's company
positionstringthe witness's position
signed_atISO8601 timestampwhen the witness signed
signed_methodwitness signed methodthe method used to sign

Witness Response Object

Response returned when creating or updating a witness.

FieldTypeDescription
witness_idsnowflakethe witness's id
codewitness response codethe response code
messagestringa message describing the response
user_id?snowflakethe id of the user or null
emailstringthe user's e-mail
phone_numberstringthe user's mobile phone number
first_namestringthe user's first name
last_namestringthe user's last name
companystringthe user's company
positionstringthe user's position
signed_at?ISO8601 timestampwhen the witness was signed or null
signed_methodwitness signed methodthe method used to sign
declarationbooleanwhether a declaration was made

Work Item Witness Response Object

FieldTypeDescription
witness_idsnowflakethe witness's id
work_item_idsnowflakethe id of the work item being witnessed
codewitness response codethe response code
messagestringa message describing the response
user_id?snowflakethe id of the user or null
emailstringthe user's e-mail
phone_numberstringthe user's mobile phone number
first_namestringthe user's first name
last_namestringthe user's last name
companystringthe user's company
positionstringthe user's position
signed_at?ISO8601 timestampwhen the witness was signed or null
signed_methodwitness signed methodthe method used to sign
declarationbooleanwhether a declaration was made

Witness Signed Method

The method used by a witness to sign.

NameValueDescription
declaration0a declaration is made where there is no evidence
signature1signature provided as evidence
object_qr2user scanned a QR code on the object
user_qr3user's QR code was scanned
app4user signed via self-service app notification

Witness Response Code

Response codes returned when creating or updating a witness.

NameValueDescription
not_signed0x00the witness has not yet signed
signed0x01the witness has been signed
request_details0x02witness details are requested
confirm_details0x03witness details need to be confirmed
declaration_missing0x04a declaration is required but missing
bad_request0xFEthe previous status was invalid
exception0xFFa general failure occurred