How can i create an account with its email with rest api

hi i am new to suitecrm, i can create a account with rest api , but i could not able to insert its related email . Could any one can help me out with this. i need an example of create accounts with email id rest api.

As you said you can create account with rest API.
Similar way add this line in your name_value_list

array('name' => 'email1', 'value' => 'test@test.com')

why this email1 i dont have any column named as email1 in my account table, i want to add it in email_addr_bean_rel this table

thank you its done. But could not understood the solution.

Rest of things are handled by SuiteCRM. email1 is used as auxiliary field to handle primary email address.

1 Like