Creates multiple demographic quota groups on a single project. This is an all or nothing operation.
Endpoint URL
http://api.clearvoicesurveys.com/api/v1/quotagroups/createquotagroups
Parameters
| ProjectGuid globally unique identifier |
| QuotaGroups Collection of QuotaGroup |
Example Request Data
{
"ProjectGuid": "32e6c647-5b2c-4aea-97c9-7b7c9a95f062",
"QuotaGroups": [
{
"Demographics": [
{
"DemographicGuid": "393a6240-018b-4218-b214-613f63f5d839",
"Answers": [
{
"AnswerGuid": "e111fab6-7330-442e-a23f-12cfbb97efab"
},
{
"AnswerGuid": "e111fab6-7330-442e-a23f-12cfbb97efab"
}
]
},
{
"DemographicGuid": "393a6240-018b-4218-b214-613f63f5d839",
"Answers": [
{
"AnswerGuid": "e111fab6-7330-442e-a23f-12cfbb97efab"
},
{
"AnswerGuid": "e111fab6-7330-442e-a23f-12cfbb97efab"
}
]
}
],
"AllowDynamicSurveys": true,
"AllowExternalSuppliers": true,
"SurveyInvitations": [
{
"Culture": "sample string 1",
"EmailInvitation": {
"Subject": "sample string 1",
"Body": "sample string 2"
},
"EmailReInvitation": {
"Subject": "sample string 1",
"Body": "sample string 2"
}
},
{
"Culture": "sample string 1",
"EmailInvitation": {
"Subject": "sample string 1",
"Body": "sample string 2"
},
"EmailReInvitation": {
"Subject": "sample string 1",
"Body": "sample string 2"
}
}
],
"QuotaGroupName": "sample string 1",
"RequestedCompletes": 2,
"BidResponseRate": 3.0,
"IncidenceRate": 4.0,
"QuotaGroupTriggers": {
"StartCap": 1,
"CompleteCap": 1,
"OverQuotaCap": 1,
"TerminateCap": 1
}
},
{
"Demographics": [
{
"DemographicGuid": "393a6240-018b-4218-b214-613f63f5d839",
"Answers": [
{
"AnswerGuid": "e111fab6-7330-442e-a23f-12cfbb97efab"
},
{
"AnswerGuid": "e111fab6-7330-442e-a23f-12cfbb97efab"
}
]
},
{
"DemographicGuid": "393a6240-018b-4218-b214-613f63f5d839",
"Answers": [
{
"AnswerGuid": "e111fab6-7330-442e-a23f-12cfbb97efab"
},
{
"AnswerGuid": "e111fab6-7330-442e-a23f-12cfbb97efab"
}
]
}
],
"AllowDynamicSurveys": true,
"AllowExternalSuppliers": true,
"SurveyInvitations": [
{
"Culture": "sample string 1",
"EmailInvitation": {
"Subject": "sample string 1",
"Body": "sample string 2"
},
"EmailReInvitation": {
"Subject": "sample string 1",
"Body": "sample string 2"
}
},
{
"Culture": "sample string 1",
"EmailInvitation": {
"Subject": "sample string 1",
"Body": "sample string 2"
},
"EmailReInvitation": {
"Subject": "sample string 1",
"Body": "sample string 2"
}
}
],
"QuotaGroupName": "sample string 1",
"RequestedCompletes": 2,
"BidResponseRate": 3.0,
"IncidenceRate": 4.0,
"QuotaGroupTriggers": {
"StartCap": 1,
"CompleteCap": 1,
"OverQuotaCap": 1,
"TerminateCap": 1
}
}
]
}
Response Description
| CreatedQuotaGroups Collection of CreateQuotaGroupResponseModel |
Example Response
{
"CreatedQuotaGroups": [
{
"ProjectGuid": "5dbbd6e7-ec9e-44b5-9b2b-095652f1a77f",
"QuotaGroupGuid": "d47e53b4-a5a8-4b20-bc12-e5a1e830c531"
},
{
"ProjectGuid": "5dbbd6e7-ec9e-44b5-9b2b-095652f1a77f",
"QuotaGroupGuid": "d47e53b4-a5a8-4b20-bc12-e5a1e830c531"
}
]
}