Question
createCampaignQuestion
Changed onCreate a new question for a specific campaign. Questions marked as required will automatically be treated as pre-conversion (where supported).
post/campaigns/{campaign}/questions
Request
- Base URLhttps://pro.gofundme.com/api/2.0
- AuthOAuth 2PasswordToken URL: /oauth2/auth
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
}
]
}Changes
- info
added the non-success response with the status
- info
- warning
added the new
hiddenenum value to the/response property for the response status - info
added the new
hiddenenum value to the request property
- warning