Skip to navigation

Attach a compliance profile to a subcontractor

Attaches one of your organization’s compliance profiles to the subcontractor, creating one pending compliance record per requirement and starting an onboarding compliance run (complianceRunId; poll it with Get a compliance run).

If the profile is already attached the call still returns 201, with alreadyAttached: true, no new records (complianceRecords: []) and no run.

A profile with a Secretary of State or license check runs it right away when the subcontractor has the information it needs; informationNeeded lists what to add otherwise.

Project-owned profiles cannot be attached here (400); attach the subcontractor to the project with Attach a subcontractor to a project. Returns 404 when the subcontractor is not visible to you, or the profile does not exist, is deleted or belongs to another organization. Requires scope subcontractors:write.

Authentication

AuthorizationBearer

Session JWT or API key (ak_...)

Path parameters

subcontractorIdstringRequiredformat: "uuid"

Request

This endpoint expects an object.
complianceProfileIdstringRequiredformat: "uuid"

Response

Profile attached and compliance records created
dataobjectOptional

Errors

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