var settings = {
"url": "https://app.circle.so/api/v1/community_members?name=First Last&community_id=121776&headline=API Test Purposes&skip_invitation=false&email=feedthedigital@gmail.com",
"method": "POST",
"timeout": 0,
"headers": {
"Authorization": "axLf5SJ1WQ3jn7Ba4LemTpuB" },
"data": "{\n \"email\": \"foo.bar@example.com\",\n \"password\": \"Password123-\",\n \"name\": \"John1 Doe1\",\n \"community_id\": \"123456\",\n \"avatar\": \"http://imgur.com/4j34h3h3.jpg\",\n \"headline\": \"World Class Athlete\",\n \"bio\": \"Runner\",\n \"location\": \"New York\",\n \"website_url\": \"https://my-blog.com/website\",\n \"twitter_url\": \"https://twitter.com/username\",\n \"facebook_url\": \"https://facebook.com/username\",\n \"instagram_url\": \"https://instagram.com/username\",\n \"linkedin_url\": \"https://linkedin.com/username\",\n \"space_ids\": [1, 2],\n \"space_group_ids\": [1, 5],\n \"member_tag_ids\": [10, 12],\n \"skip_invitation\": false,\n \"is_flagged\": true,\n \"preferences\": {\n \"messaging_enabled_by_admin\": false\n },\n \"community_member_profile_fields\": {\n \"nickname\": \"MyNickname\",\n \"your_business_description\": \"My bussiness is focused on enterprise customers...\",\n \"favourite_colors\": [1, 2, 3], // ids of favourite colors (it could be fetched by https://api.circle.so/#dc911459-2a75-4406-bc50-dfbce24a5da3)\n \"best_country_to_live\": 1 // id of the item in the dropdown (it could be fetched by https://api.circle.so/#dc911459-2a75-4406-bc50-dfbce24a5da3)\n }\n}",
};
$.ajax(settings).done(function (response) {
console.log(response);
});