Detach a subcontractor from a project
Ends the subcontractor’s active membership (status: inactive, detachedAt set) and detaches its project-scoped compliance enrollment. The project’s compliance records are kept for history but no longer appear in the project roll-up; the subcontractor’s organization-level records are unaffected. Re-attaching later reactivates the same enrollment. Returns 404 when the subcontractor has no active membership on the project. Requires scope projects:write.
Authentication
AuthorizationBearer
Session JWT or API key (ak_...)
Path parameters
projectId
subcontractorId
Response
The detached membership
data
A subcontractor's membership on a project.
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
429
Too Many Requests Error
