|
| 1 | +{ |
| 2 | + "type": "object", |
| 3 | + "title": "New Project", |
| 4 | + "properties": { |
| 5 | + "extProjectId": { |
| 6 | + "type": "string", |
| 7 | + "description": "A unique identifier for your project", |
| 8 | + "maxLength": 255 |
| 9 | + }, |
| 10 | + "title": { |
| 11 | + "type": "string", |
| 12 | + "description": "A project title of your choosing", |
| 13 | + "maxLength": 255 |
| 14 | + }, |
| 15 | + "jobNumber": { |
| 16 | + "type": "string", |
| 17 | + "description": "A job number of your choosing", |
| 18 | + "maxLength": 100 |
| 19 | + }, |
| 20 | + "notificationEmails": { |
| 21 | + "type": "array", |
| 22 | + "description": "The email addresses to receive notifications", |
| 23 | + "format": "email", |
| 24 | + "items": { |
| 25 | + "type": "string" |
| 26 | + } |
| 27 | + }, |
| 28 | + "devices": { |
| 29 | + "type": "array", |
| 30 | + "description": "Device targeting for the project", |
| 31 | + "enum": [ |
| 32 | + "mobile", |
| 33 | + "desktop", |
| 34 | + "tablet" |
| 35 | + ], |
| 36 | + "default": [ |
| 37 | + "mobile", |
| 38 | + "desktop", |
| 39 | + "tablet" |
| 40 | + ], |
| 41 | + "items": { |
| 42 | + "type": "string" |
| 43 | + } |
| 44 | + }, |
| 45 | + "category": { |
| 46 | + "type": "object", |
| 47 | + "required": [ |
| 48 | + "surveyTopic" |
| 49 | + ], |
| 50 | + "properties": { |
| 51 | + "surveyTopic": { |
| 52 | + "type": "array", |
| 53 | + "description": "List of possible topics for a survey.", |
| 54 | + "items": { |
| 55 | + "type": "string", |
| 56 | + "minLength": 1 |
| 57 | + } |
| 58 | + } |
| 59 | + } |
| 60 | + }, |
| 61 | + "lineItems": { |
| 62 | + "type": "array", |
| 63 | + "uniqueItems": true, |
| 64 | + "minItems": 1, |
| 65 | + "items": { |
| 66 | + "type": "object", |
| 67 | + "title": "New Line Item", |
| 68 | + "required": [ |
| 69 | + "extLineItemId", |
| 70 | + "countryISOCode", |
| 71 | + "languageISOCode", |
| 72 | + "indicativeIncidence", |
| 73 | + "daysInField", |
| 74 | + "lengthOfInterview", |
| 75 | + "targets" |
| 76 | + ], |
| 77 | + "properties": { |
| 78 | + "extLineItemId": { |
| 79 | + "type": "string", |
| 80 | + "description": "A unique identifier for your Line Item" |
| 81 | + }, |
| 82 | + "title": { |
| 83 | + "type": "string", |
| 84 | + "description": "A Line Item title of your choosing" |
| 85 | + }, |
| 86 | + "countryISOCode": { |
| 87 | + "type": "string", |
| 88 | + "description": "2 letter ISO Country Code", |
| 89 | + "minLength": 2, |
| 90 | + "maxLength": 2 |
| 91 | + }, |
| 92 | + "languageISOCode": { |
| 93 | + "type": "string", |
| 94 | + "description": "2 letter ISO Language Code", |
| 95 | + "minLength": 2, |
| 96 | + "maxLength": 2 |
| 97 | + }, |
| 98 | + "surveyURL": { |
| 99 | + "type": "string", |
| 100 | + "description": "Survey URL to send panelist into. " |
| 101 | + }, |
| 102 | + "surveyTestURL": { |
| 103 | + "type": "string", |
| 104 | + "description": "Survey Test URL. Required for survey verification" |
| 105 | + }, |
| 106 | + "indicativeIncidence": { |
| 107 | + "type": "integer", |
| 108 | + "description": "Percent of panelists you expect to qualify for the survey after they go in" |
| 109 | + }, |
| 110 | + "daysInField": { |
| 111 | + "type": "integer", |
| 112 | + "description": "Number of days the survey should be active in the field. We do not stop the survey after daysInField has expired" |
| 113 | + }, |
| 114 | + "lengthOfInterview": { |
| 115 | + "type": "integer", |
| 116 | + "description": "Average number of minutes it takes a user to complete your survey" |
| 117 | + }, |
| 118 | + "deliveryType": { |
| 119 | + "type": "string", |
| 120 | + "default": "BALANCED", |
| 121 | + "description": "The plan on how responses will flow into the survey.", |
| 122 | + "enum": [ |
| 123 | + "SLOW", |
| 124 | + "BALANCED", |
| 125 | + "FAST" |
| 126 | + ] |
| 127 | + }, |
| 128 | + "sources": { |
| 129 | + "type": "array", |
| 130 | + "description": "The supplier source that you would like to buy sample from. You can get the list of sources available to your account using the [Get List of Sources](/demand-api-reference/data_endpoints/supplier-sources/get-sources) endpoint", |
| 131 | + "default": 100, |
| 132 | + "items": { |
| 133 | + "type": "object", |
| 134 | + "properties": { |
| 135 | + "id": { |
| 136 | + "type": "integer" |
| 137 | + } |
| 138 | + } |
| 139 | + } |
| 140 | + }, |
| 141 | + "targets": { |
| 142 | + "type": "array", |
| 143 | + "description": "Total count of survey completes required for this line item", |
| 144 | + "items": { |
| 145 | + "type": "object", |
| 146 | + "properties": { |
| 147 | + "count": { |
| 148 | + "description": "Total number of counts required for this line item for the specified target type", |
| 149 | + "type": "integer" |
| 150 | + }, |
| 151 | + "dailyLimit": { |
| 152 | + "description": "Total number of daily counts required for this line item", |
| 153 | + "type": "integer" |
| 154 | + }, |
| 155 | + "type": { |
| 156 | + "type": "string", |
| 157 | + "description": "The type of counts required for this line item.", |
| 158 | + "enum": [ |
| 159 | + "COMPLETE" |
| 160 | + ] |
| 161 | + } |
| 162 | + } |
| 163 | + } |
| 164 | + }, |
| 165 | + "quotaPlan": { |
| 166 | + "type": "object", |
| 167 | + "title": "Quota Plan", |
| 168 | + "description": "Defines the type of respondents you want to invite for the survey", |
| 169 | + "properties": { |
| 170 | + "filters": { |
| 171 | + "type": "array", |
| 172 | + "description": "Filters are minimum set of targeting that every respondent must have in order to qualify for the study. Only attributes that have `isAllowedInFilters = true` is allowed to be used in `filters`", |
| 173 | + "items": { |
| 174 | + "type": "object", |
| 175 | + "properties": { |
| 176 | + "attributeId": { |
| 177 | + "type": "string", |
| 178 | + "description": "The attribute you want to target respondents on" |
| 179 | + }, |
| 180 | + "options": { |
| 181 | + "type": "array", |
| 182 | + "description": "The options of the attribute you want to target respondents on", |
| 183 | + "uniqueItems": true, |
| 184 | + "items": { |
| 185 | + "type": "string" |
| 186 | + } |
| 187 | + }, |
| 188 | + "operator": { |
| 189 | + "type": "string", |
| 190 | + "enum": [ |
| 191 | + "exclude", |
| 192 | + "include" |
| 193 | + ], |
| 194 | + "default": "include", |
| 195 | + "description": "The operator to use for the attribute options." |
| 196 | + } |
| 197 | + } |
| 198 | + } |
| 199 | + }, |
| 200 | + "quotaGroups": { |
| 201 | + "type": "array", |
| 202 | + "description": "Quota groups define the allocated targeting attributes for panelists within this line item. Only attributes that have `isAllowedInQuotas = true` is allowed in `quotaGroups`.", |
| 203 | + "items": { |
| 204 | + "type": "object", |
| 205 | + "properties": { |
| 206 | + "name": { |
| 207 | + "type": "string", |
| 208 | + "description": "A quota group name of your choosing" |
| 209 | + }, |
| 210 | + "quotaCells": { |
| 211 | + "type": "array", |
| 212 | + "description": "Quota Cells define the percentage allocation for the required targeting. A quota cell is made up of a collection of quota Nodes", |
| 213 | + "items": { |
| 214 | + "type": "object", |
| 215 | + "properties": { |
| 216 | + "quotaNodes": { |
| 217 | + "type": "array", |
| 218 | + "description": "Quota Nodes define the collection of attributes and options being targeted.", |
| 219 | + "items": { |
| 220 | + "type": "object", |
| 221 | + "properties": { |
| 222 | + "attributeId": { |
| 223 | + "type": "string", |
| 224 | + "description": "The attribute you want to target respondents on" |
| 225 | + }, |
| 226 | + "options": { |
| 227 | + "type": "array", |
| 228 | + "description": "The options of the attribute you want to target respondents on", |
| 229 | + "uniqueItems": true, |
| 230 | + "items": { |
| 231 | + "type": "string" |
| 232 | + } |
| 233 | + }, |
| 234 | + "operator": { |
| 235 | + "type": "string", |
| 236 | + "enum": [ |
| 237 | + "exclude", |
| 238 | + "include" |
| 239 | + ], |
| 240 | + "default": "include", |
| 241 | + "description": "**Deprecated field** The operator to use for the attribute options." |
| 242 | + } |
| 243 | + } |
| 244 | + } |
| 245 | + }, |
| 246 | + "count": { |
| 247 | + "type": "integer", |
| 248 | + "description": "The count of respondents you want to qualify for the defined quota cell" |
| 249 | + } |
| 250 | + } |
| 251 | + } |
| 252 | + } |
| 253 | + } |
| 254 | + } |
| 255 | + } |
| 256 | + } |
| 257 | + } |
| 258 | + } |
| 259 | + } |
| 260 | + }, |
| 261 | + "exclusions": { |
| 262 | + "type": "object", |
| 263 | + "properties": { |
| 264 | + "type": { |
| 265 | + "type": "string" |
| 266 | + }, |
| 267 | + "list": { |
| 268 | + "type": "array", |
| 269 | + "items": { |
| 270 | + "type": "object" |
| 271 | + } |
| 272 | + } |
| 273 | + } |
| 274 | + } |
| 275 | + }, |
| 276 | + "required": [ |
| 277 | + "extProjectId", |
| 278 | + "category", |
| 279 | + "lineItems" |
| 280 | + ] |
| 281 | +} |
0 commit comments