Convert a lead
Writes the lead into an account, a contact and an opportunity in one step. Needs all three objects available, and refuses a caller whose field access is narrowed anywhere.
/api/v1/objects/{objectId}/records/{recordId}/actions/convertAuthorizationOAuth2 access token · headerrequiredAuthorization-code grant with PKCE. Clients are public and hold no secret. Discovery is published at /.well-known/oauth-authorization-server/api/auth.
api.accessobjectIdstringrequiredAn object's id
recordIdstringrequiredA record's id
Idempotency-KeystringrequiredReplays the first answer for a repeated request
application/jsonaccountobjectrequiredShow propertiesHide properties
idstringmodestringrequirednewexistingnamestringacknowledgedMatchesbooleancontactobjectrequiredShow propertiesHide properties
firstNamestringidstringlastNamestringmodestringrequirednewexistingskipopportunityobjectrequiredShow propertiesHide properties
amountstringcloseDatestring<date>createbooleannamestringstagestring01-商談見極め02-課題の合意03-担当者合意04-決裁者合意05-価格とスケジュール合意06-契約手続き中07-ペンディング(事務手続きのやり取り)08-受注09-失注The records the conversion wrote
accountIdstringrequiredcontactIdstring | nullrequiredShow propertiesHide properties
stringnullopportunityIdstring | nullrequiredShow propertiesHide properties
stringnullunmappedstring[]requiredThe request body, query or parameters were refused
codestringrequiredinvalid_inputnot_foundconflictforbiddendetailanyerrorstringrequiredreasonstringThe access token is missing, invalid or revoked
errorstringrequiredThe tenant's module is off, or the token's scope or the member's role does not permit the action
codestringrequiredinvalid_inputnot_foundconflictforbiddendetailanyerrorstringrequiredreasonstringNo such record, or none the caller may read
codestringrequiredinvalid_inputnot_foundconflictforbiddendetailanyerrorstringrequiredreasonstringThe operation conflicts with the current state
codestringrequiredinvalid_inputnot_foundconflictforbiddendetailanyerrorstringrequiredreasonstringThe request exceeds the route's body limit
errorstringrequiredAn unexpected failure
errorstringrequired