Create Contact Group
POST
https://us-central1-appgregator.cloudfunctions.net/jurnalID/contacts/contact_groups/
Query Parameters
Name
Type
Description
name*
String
ft-4
connection_name*
String
intrapreneur-jurnalid-1
Headers
Name
Type
Description
x-api-key*
String
U2Fsd...
{
"contact_group": {
"id": 81589,
"name": "QC",
"company_id": 473256,
"contact_group_role": 1,
"deleted_at": null,
"created_at": "2022-08-10T07:03:37.675Z",
"updated_at": "2022-08-10T07:03:37.675Z",
"custom_id": null
}
}
curl --location --request POST 'https://us-central1-appgregator.cloudfunctions.net/jurnalID/contacts/contact_groups?name=ft-4&connection_name=intrapreneur-jurnalid-1' \
--header 'x-api-key: U2Fsd...' \
--header 'Content-Type: application/json' \
--data-raw '{
"contact_group": {
"name": "QC",
"company_id": 473256,
"contact_group_role": 1
}
}'
var axios = require('axios');
var data = JSON.stringify({
"contact_group": {
"name": "QC",
"company_id": 473256,
"contact_group_role": 1
}
});
var config = {
method: 'post',
url: 'https://us-central1-appgregator.cloudfunctions.net/jurnalID/contacts/contact_groups?name=ft-4&connection_name=intrapreneur-jurnalid-1',
headers: {
'x-api-key': 'U2Fsd...',
'Content-Type': 'application/json'
},
data : data
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://us-central1-appgregator.cloudfunctions.net/jurnalID/contacts/contact_groups?name=ft-4&connection_name=intrapreneur-jurnalid-1',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS =>'{
"contact_group": {
"name": "QC",
"company_id": 473256,
"contact_group_role": 1
}
}',
CURLOPT_HTTPHEADER => array(
'x-api-key: U2Fsd...',
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
Last updated