curl --location --request PUT 'https://apivisionsampling.innovatemr.com/api/v2/pega/group/' \
--header 'x-access-token;' \
--header 'Content-Type: application/json' \
--data-raw '{
"Name": "Sample Group",
"N": 100,
"IncidenceRate": 80,
"EstCostPerInterview": 5.5,
"LengthOfInterview": 30,
"LiveSurveyUrl": "http://www.survey.com?tk=[%%token%%]&pid=[%%pid%%]",
"TestSurveyUrl": "http://www.survey.com?tk=[%%token%%]&pid=[%%pid%%]",
"Color": 0,
"Priority": 1,
"DeviceType": 6,
"Target": {
"GeoIPCheck": 1,
"Country": "United States",
"Languages": "ENGLISH"
},
"Note": "This is a sample note.",
"MaximumCostPerInterview": 10.0
}'{
"apiStatus": "success",
"msg": "Group is successfully accepted",
"group": {
"Target": {
"GeoIPCheck": 1,
"Languages": [
1
],
"Country": "United States"
},
"Status": 1,
"Name": "Group A Test",
"N": 20,
"IncidenceRate": 30,
"CostPerInterview": 3.75,
"EstCostPerInterview": 2,
"LengthOfInterview": 3,
"LiveSurveyUrl": "http://www.survey.com?tk=[%%token%%]&pid=[%%pid%%]",
"JobId": 8575,
"CompanyId": 44,
"DeviceType": 6,
"CountryCode": "US",
"Language": "ENGLISH",
"Id": 19427,
"CreatedDate": "2018-12-05T13:15:54.745Z",
"SID": "ev9wL269",
"TestSurveyUrl": "",
"Fielding": {
"FieldingStartDate": "2021-04-12T07:00:00.000Z",
"FieldingEndDate": "2021-04-23T06:59:59.999Z"
}
}