< back to index

HTTP request

POST https://api.wevoteusa.org/apis/v1/campaignSave (Jump to "Try It Now")

Required Parameters

Parameter name Value Description
voter_device_id string An 88 character unique identifier linked to a voter record on the server
api_key string (from post, cookie, or get (in that order)) The unique key provided to any organization using the WeVoteServer APIs

Optional Parameters

Parameter name Value Description
campaignx_we_vote_id string The we_vote_id for the campaign.
campaign_title string The title of the campaign.
campaign_title_changed boolean Are we trying to change the campaign's title?
in_draft_mode boolean Is this item still in draft mode?
in_draft_mode_changed boolean Has the draft mode changed?


  "status": string,
  "success": boolean,
  "campaign_title": string,
  "in_draft_mode": boolean,
  "campaignx_we_vote_id": string,
  "organization_we_vote_id": string,
  "voter_we_vote_id": string,

Response Status Codes

Code Description
VALID_VOTER_DEVICE_ID_MISSING Cannot proceed. A valid voter_device_id parameter was not included.
VALID_VOTER_ID_MISSING Cannot proceed. A valid voter_id was not found.

Try It Now: API Variables

Parameter name Value  
campaign_title_changed: True
in_draft_mode: True
in_draft_mode_changed: True

(opens in new window)