Convert an existing vendor to a technician (create workforce + optional portal invite)
POST/vendor/:id/convert-to-technician
Creates a workforce record (sourced VENDOR) for an existing vendor and optionally invites the vendor's contact to the portal. Body is a REST-only ConvertToTechnicianReq; response is a REST-only inline struct (handler purchase.go:860; models/purchase_dto.go).
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 500
Vendor with newly created workforce (and optional invite info)
Bad request error
Unauthorized error
Token issue like Expired or corrupted
NotFound
Internal Server error