v1
latestOpenAPI 3.0.02026-08-062903562.2 MBQuestion
createCampaignQuestion
Create a new question for a specific campaign. Questions marked as required will automatically be treated as pre-conversion (where supported).
post/campaigns/{campaign}/questions
Path parameters
campaigninteger required
Example:227362
The ID of the campaign to which the question will be added
Request body
Example request
{
"campaign_id": 227362,
"created_at": "2021-04-23T10:25:03Z",
"deleted_at": "2021-04-23T10:25:03Z",
"id": 45678,
"is_required": true,
"label": "Do you require accommodations due to a medical condition or disability?",
"location": "donation_page",
"product_id": 73647,
"tag": "email_address",
"type": "boolean",
"updated_at": "2021-04-23T10:25:03Z"
}Response
Success
Example response
{
"campaign_id": 227362,
"created_at": "2021-04-23T10:25:03Z",
"deleted_at": "2021-04-23T10:25:03Z",
"id": 45678,
"is_required": true,
"label": "Do you require accommodations due to a medical condition or disability?",
"location": "donation_page",
"product_id": 73647,
"tag": "email_address",
"type": "boolean",
"updated_at": "2021-04-23T10:25:03Z",
"enum_options": [
{
"label": "Text label",
"question_id": 45678
}
]
}