Skip to main content
PUT
/
api
/
spaces
/
coworkeridentitychecks
Update CoworkerIdentityCheck
curl --request PUT \
  --url https://spaces.nexudus.com/api/spaces/coworkeridentitychecks \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "Id": 123,
  "BusinessId": 123,
  "CoworkerId": 123,
  "Name": "<string>",
  "IdentityCheckProvider": 123,
  "IdentityDocumentType": 123,
  "AddressDocumentType": 123
}
'
{
  "Status": 123,
  "Message": "<string>",
  "Value": "<any>",
  "WasSuccessful": true,
  "Errors": [
    {
      "AttemptedValue": "<any>",
      "Message": "<string>",
      "PropertyName": "<string>"
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://learn.nexudus.com/llms.txt

Use this file to discover all available pages before exploring further.

Updates an existing CoworkerIdentityCheck record. You must include the Id of the record to update along with all required fields.

Authentication

This endpoint requires OAuth2 authentication. Include a valid bearer token in the Authorization header. The authenticated user must be a full unrestricted administrator or have the CoworkerIdentityCheck-Edit role.

Enums

ValueName
0None
1Manual
2StripeIdentity
ValueName
0None
1Passport
2DriversLicense
3IdCard
4UniformedServiceId
5CertificateOfNaturalization
6AccessCard
7MatriculaConsular
8ResidentCard
9UniversityId
10NEXUSCard
99Other
ValueName
0None
1Passport
2DriversLicense
3IdCard
4LeaseRentalAgreement
5InsurancePolicy
6Mortgage
7VehicleRegistrationCard
8VoterCard
99Other
ValueName
0None
1IdDocument
2Address
ValueName
0None
1Pending
2Submitted
3Successful
4Failed
5Cancelled

Request Body

Required Fields

Id
integer
required
The Id of the CoworkerIdentityCheck record to update.
BusinessId
integer
required
ID of the business linked to this record.
CoworkerId
integer
required
ID of the coworker linked to this record.
Name
string
required
Display name for this verification check.
IdentityCheckProvider
integer
required
How the check is performed: Manual (operator review) or StripeIdentity (Stripe-delegated).
IdentityDocumentType
integer
required
Type of identity document used when VerificationType is IdDocument.
AddressDocumentType
integer
required
Type of address document used when VerificationType is Address.

Optional Fields

IdentityDocumentNumber
string
Number or identifier on the identity document.
IdentityDocumentIssuedBy
string
Authority or organisation that issued the identity document.
IdentityDocumentExpirationDate
string
Expiration date of the identity document.
Description
string
Free-text notes or details about this check.
Billed
boolean
Whether billed is enabled.
StripeVerificationSessionId
string
ID of the stripe verification session associated with this record.
IdentityCheckProvider1
integer
The identity check provider1 value for this coworker identity check. See eIdentityCheckProvider? enum above.
VerificationType1
integer
The verification type1 value for this coworker identity check. See eIdVerificationType? enum above.
Description1
string
The description1 value for this coworker identity check.
IdentityCheckProvider2
integer
The identity check provider2 value for this coworker identity check. See eIdentityCheckProvider? enum above.
VerificationType2
integer
The verification type2 value for this coworker identity check. See eIdVerificationType? enum above.
Description2
string
The description2 value for this coworker identity check.

Code Examples

curl -X PUT \
  "https://spaces.nexudus.com/api/spaces/coworkeridentitychecks" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "BusinessId": 0,
    "CoworkerId": 0,
    "Name": "",
    "IdentityCheckProvider": 0,
    "IdentityDocumentType": 0,
    "AddressDocumentType": 0,
    "Id": 87654321
}'

Response

200

Status
integer
HTTP status code. 200 on success.
Message
string
A human-readable message confirming the update.
Value
object
Contains the Id of the updated record.
WasSuccessful
boolean
true if the coworkeridentitycheck was updated successfully.
Errors
array
null on success.
Example Response
{
  "Status": 200,
  "Message": "CoworkerIdentityCheck was successfully updated.",
  "Value": {
    "Id": 87654321
  },
  "OpenInDialog": false,
  "OpenInWindow": false,
  "RedirectURL": null,
  "JavaScript": null,
  "UpdatedOn": "2025-01-15T10:30:00Z",
  "UpdatedBy": "admin@example.com",
  "Errors": null,
  "WasSuccessful": true
}

400

Message
string
A summary of the validation error(s), in the format PropertyName: error message.
Value
any
null on validation failure.
Errors
object[]
Array of validation errors.
WasSuccessful
boolean
false when the request fails validation.
Example Response
{
  "Message": "Name: is a required field",
  "Value": null,
  "Errors": [
    {
      "AttemptedValue": null,
      "Message": "is a required field",
      "PropertyName": "Name"
    }
  ],
  "WasSuccessful": false
}