Skip to navigation

Update a subcontractor

Updates the shared subcontractor record. Omit a field to leave it unchanged; send null for an intake field (ein, website, businessAddress, ownerName, ownerEmail, ownerPhone) to clear it. licenses, when present, replaces the whole license set. Unknown fields, including origin (which cannot be changed here), are rejected with 400 validation_failed.

The create rules for names apply to the record as it will be after the update: changing entityType to sole_proprietor needs firstName and lastName (in the body or already on the record), and a business entity needs a companyName. Otherwise 400 validation_failed.

Adding information a Secretary of State or license check was waiting on (name, trade, business address, licenses) starts that check right away for every organization whose profile requires it. data.informationNeeded lists anything still missing for yours.

Adding a license, or changing a license’s licenseNumber or state, runs the license check again right away (a new paid lookup in production), even if it ran before. Removing a license or changing only its licenseType doesn’t.

422 is returned for a malformed ein, more than one primary license, or a duplicate (state, licenseNumber) pair. Requires scope subcontractors:write.

Authentication

AuthorizationBearer

Session JWT or API key (ak_...)

Path parameters

subcontractorIdstringRequiredformat: "uuid"

Request

This endpoint expects an object.
businessAddressobject or nullOptional
communicationPreferenceenumOptional
Allowed values:
companyNamestringOptional
contactEmailstringOptionalformat: "email"
contactNamestring or nullOptional
contactPhonestringOptional
dbastring or nullOptional

The subcontractor’s “doing business as” name (shared). null or "" clears it.

einstring or nullOptional

Accepts NN-NNNNNNN or nine digits; stored normalized. A malformed EIN is rejected with 422.

entityTypeenumOptional
externalIdstringOptional
firstNamestringOptional
languagePreferenceenumOptional
Allowed values:
lastNamestringOptional
licenseslist of objectsOptional
metadataobjectOptional
ownerEmailstring or nullOptionalformat: "email"
ownerNamestring or nullOptional
ownerPhonestring or nullOptional

Any US-parsable format; stored E.164

tradeCategoryenumOptional

Optional trade/discipline of the subcontractor. Optional for API clients; the general-contractor web UI requires it when creating a subcontractor.

websitestring or nullOptional

A bare host (acme.example) is accepted and stored as https://acme.example

Response

Subcontractor updated (includes the current licenses set)

dataobjectOptional

Shared company details plus your organization’s own contact, externalId and metadata (never another organization’s).

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error
429
Too Many Requests Error