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": "f878fe66-b876-4e67-9a66-edf139f43c29",
"QuotaGroups": [
{
"Demographics": [
{
"DemographicGuid": "f9c10321-77f8-48b1-8dbb-e7123b1b87a6",
"Answers": [
{
"AnswerGuid": "361a292c-b1fa-4a79-8971-b0832e4e3351"
},
{
"AnswerGuid": "361a292c-b1fa-4a79-8971-b0832e4e3351"
}
]
},
{
"DemographicGuid": "f9c10321-77f8-48b1-8dbb-e7123b1b87a6",
"Answers": [
{
"AnswerGuid": "361a292c-b1fa-4a79-8971-b0832e4e3351"
},
{
"AnswerGuid": "361a292c-b1fa-4a79-8971-b0832e4e3351"
}
]
}
],
"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": "f9c10321-77f8-48b1-8dbb-e7123b1b87a6",
"Answers": [
{
"AnswerGuid": "361a292c-b1fa-4a79-8971-b0832e4e3351"
},
{
"AnswerGuid": "361a292c-b1fa-4a79-8971-b0832e4e3351"
}
]
},
{
"DemographicGuid": "f9c10321-77f8-48b1-8dbb-e7123b1b87a6",
"Answers": [
{
"AnswerGuid": "361a292c-b1fa-4a79-8971-b0832e4e3351"
},
{
"AnswerGuid": "361a292c-b1fa-4a79-8971-b0832e4e3351"
}
]
}
],
"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": "af29c558-6739-40f9-b07b-20cd023eb953",
"QuotaGroupGuid": "62ce72ab-6488-4e64-bd17-fe108ac255fc"
},
{
"ProjectGuid": "af29c558-6739-40f9-b07b-20cd023eb953",
"QuotaGroupGuid": "62ce72ab-6488-4e64-bd17-fe108ac255fc"
}
]
}