saveLeadLegalEntity
Link a business lead to a legal entity: an existing one, updated first if details are given, or a new draft one created with the given details. Legal entities are never matched by name: find an existing one with the legalEntitiesByName query. The request must be made on behalf of a support user. Only a business lead can have a legal entity.
Arguments
The lead and the legal entity to link to it.
- KT-CT-1111: Unauthorized.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-7899: An internal error occurred.
- KT-CT-8907: Lead not found.
- KT-CT-8981: This lead cannot have a legal entity.
- KT-CT-8982: Unable to save the legal entity.
- KT-CT-8983: Legal entity not found.
- KT-CT-8984: Active legal entities can't be updated.
- KT-CT-8985: Give either an existing legal entity or a new one.
- KT-CT-8987: Lead contact does not belong to lead.
Examples
The example data in the variables and responses below are autogenerated values designed to resemble real inputs. They do not represent actual customer data, and in some cases may require additional validation.
mutation SaveLeadLegalEntity($input: SaveLeadLegalEntityInput!) {
saveLeadLegalEntity(input: $input) {
legalEntityIdentifier
}
}
Variables
{
"input": SaveLeadLegalEntityInput
}
Response
{
"data": {
"saveLeadLegalEntity": {
"legalEntityIdentifier": "53667154"
}
}
}