(self, request, tenant_id)
return b''
Adds new contacts to a tenant and responds with a 200.

        Note: If there is a GET on the tenant before this `POST` call, the default
        contacts would have been listed. This POST will overwrite the existing contacts
        and only set the contacts provided.
Adds new contacts to a tenant and responds with a 200.
Adds new contacts to a tenant and responds with a 200 .
def add_customer_contacts_for_tenant(self, request, tenant_id):
        """
        Adds new contacts to a tenant and responds with a 200.

        Note: If there is a GET on the tenant before this `POST` call, the default
        contacts would have been listed. This POST will overwrite the existing contacts
        and only set the contacts provided.
        """
        content = json_from_request(request)
        contact_list = [(each_contact["email"], each_contact["role"]) for each_contact in content]
        self.core.contacts_store.add_to_contacts_store(tenant_id, contact_list)
        return b''
def add_customer_contacts_for_tenant ( self , request , tenant_id ) : content = json_from_request ( request ) contact_list = [ ( each_contact [ "email" ] , each_contact [ "role" ] ) for each_contact in content ] self . core . contacts_store . add_to_contacts_store ( tenant_id , contact_list ) return b''