Skip to navigation

Activate/deactivate a subcontractor, set its condition flags, or defer endorsements or missing policies to renewal

Updates your organization’s enrollment of the subcontractor. Send status, conditionFlags, enforceEndorsementsAtRenewal, missingPoliciesAtRenewal, or any mix.

  • Changing status is recorded in the enrollment status history.
  • Changing conditionFlags re-evaluates compliance for every active profile the subcontractor is enrolled in for your organization.
  • Record the subcontractor’s answer on business vehicles with company_vehicles (yes) or no_company_vehicles (no); sending both is a 400. Auto requirements that apply “only when the sub operates company vehicles” read “Waiting on the sub” until one is set (see List condition keys).
  • Add no_owned_vehicles when the subcontractor confirms it owns no company vehicles: auto requirements with policyRules.noOwnedVehiclesException then accept hired + non-owned autos only (see PolicyRules).
  • enforceEndorsementsAtRenewal: true defers the endorsement checks on the policies the subcontractor has now until each one renews (see Create a subcontractor); false checks them now. Changing it re-evaluates compliance the same way.
  • missingPoliciesAtRenewal replaces the missing policy types that wait until the subcontractor’s next renewal ([] for none). A type kept from before keeps its original start; a newly added one starts now. Changing it re-evaluates compliance the same way.
  • When nothing actually changes, the enrollment is returned unchanged and nothing is recorded.

Returns 404 when the subcontractor has no enrollment with your organization. Requires scope subcontractors:write.

Authentication

AuthorizationBearer

Session JWT or API key (ak_...)

Path parameters

subcontractorIdstringRequiredformat: "uuid"

Request

Provide status, conditionFlags, enforceEndorsementsAtRenewal and/or missingPoliciesAtRenewal.

enforceEndorsementsAtRenewalbooleanOptional
Existing sub, endorsement checks wait for each policy's renewal.
missingPoliciesAtRenewallist of enumsOptional

Existing sub, these missing policy types wait until the subcontractor’s next renewal (the earliest expiration date among its policies on file). Replaces the current set; [] for none.

statusenumOptional
Allowed values:
conditionFlagslist of stringsOptional

Condition keys set for this subcontractor in your organization; replaces the current set. Each must be a known key (see GET /v1/meta/condition-keys), otherwise 400 validation_failed.

Response

Enrollment updated
dataobjectOptional

The link between your organization and a subcontractor (one row per organization × subcontractor). Status, condition flags and portal-invite state are organization-scoped; the subcontractor record itself is shared.

Errors

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