ConvertLead transitions a contact from the lead stage to a later stage. Optionally creates a deal atomically via deal_params.
POST/api/v1/crm/contacts/:id:convert-lead
Breaking changes vs prior version:
- target_stage (string) replaced by target_stage_id (int64).
- Response type changed from ContactResponse to ConvertLeadResponse.
Errors:
- NOT_FOUND: contact or target_stage_id does not exist.
- FAILED_PRECONDITION: contact is not in the lead stage.
- PERMISSION_DENIED: caller lacks crm_contact:admin.
Request
Responses
- 200
- default
A successful response.
An unexpected error response.