Updates the details of an existing legal entity.The legal entity identified by legalEntityId must be a member of a trust group owned by legalEntityOwnerId, or have a trust group membership connected to it (the same rule as Legal Entity Details).This is a full update (PUT): send the complete legalEntityDetails object. Any field that is left out or sent as an empty string is cleared.Trust group membership is not changed by this endpoint. Use the trust group endpoints to add the entity to, or remove it from, trust groups.If the new name, charityNumber or yourReference already belongs to a different legal entity in any of your trust groups, the request is rejected with 409 Conflict and the existing entity's ID is returned.