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": "4ee76894-6821-4948-a57f-3f4cae9c5245",
"QuotaGroups": [
{
"Demographics": [
{
"DemographicGuid": "07227f9c-69ff-4019-97b8-3bafc9c22e1f",
"Answers": [
{
"AnswerGuid": "42a5f6d3-e712-4370-b313-43ccf83cd0f4"
},
{
"AnswerGuid": "42a5f6d3-e712-4370-b313-43ccf83cd0f4"
}
]
},
{
"DemographicGuid": "07227f9c-69ff-4019-97b8-3bafc9c22e1f",
"Answers": [
{
"AnswerGuid": "42a5f6d3-e712-4370-b313-43ccf83cd0f4"
},
{
"AnswerGuid": "42a5f6d3-e712-4370-b313-43ccf83cd0f4"
}
]
}
],
"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": "07227f9c-69ff-4019-97b8-3bafc9c22e1f",
"Answers": [
{
"AnswerGuid": "42a5f6d3-e712-4370-b313-43ccf83cd0f4"
},
{
"AnswerGuid": "42a5f6d3-e712-4370-b313-43ccf83cd0f4"
}
]
},
{
"DemographicGuid": "07227f9c-69ff-4019-97b8-3bafc9c22e1f",
"Answers": [
{
"AnswerGuid": "42a5f6d3-e712-4370-b313-43ccf83cd0f4"
},
{
"AnswerGuid": "42a5f6d3-e712-4370-b313-43ccf83cd0f4"
}
]
}
],
"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": "aa2fbfea-b8ac-48ba-a43b-ed1f7c8394f4",
"QuotaGroupGuid": "4d45c6ef-f5a2-473a-8b66-6d7704570e07"
},
{
"ProjectGuid": "aa2fbfea-b8ac-48ba-a43b-ed1f7c8394f4",
"QuotaGroupGuid": "4d45c6ef-f5a2-473a-8b66-6d7704570e07"
}
]
}