Add a new pledge drive

POST /pledgedrive
application/json

Body Required

New pledge drive parameters

  • name string

Responses

  • 200 application/json

    Item has been saved successfully

    Hide response attribute Show response attribute object
    • id integer
  • 401 application/json

    Authentication unauthorised

    Hide response attribute Show response attribute object
    • error string
  • 403 application/json

    Invalid permission

    Hide response attribute Show response attribute object
    • error string
POST /pledgedrive
curl \
 --request POST 'https://YOURSITE.infoodle.com/apiv2/pledgedrive' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"name":"2025 Building Campaigns"}'
Request examples
{
  "name": "2025 Building Campaigns"
}
Response examples (200)
{
  "id": 4325342
}
Response examples (401)
{
  "error": "Unauthorised"
}
Response examples (403)
{
  "error": "Invalid Permission"
}