Campaign Management

Toggle Campaign Live

Start or stop any campaign (survey or advertisement) by toggling its live status. You can only toggle campaigns that you own.

PATCH/nfthing/campaign/toggle-live

Headers

FieldTypeRequiredDescription
X-API-KeystringYesYour Membrane API key.
Content-TypestringYesMust be application/json.

Request body

FieldTypeRequiredDescription
post_idstringYesThe post_id of the campaign.
is_livebooleanYestrue to start the campaign, false to stop.

Example request

PATCH /nfthing/campaign/toggle-live
{
  "post_id": "bbfea083-da7f-492f-a29d-9f66848de9e4",
  "is_live": true
}

Example response

200 OK
{
  "success": true,
  "message": "Campaign started successfully",
  "data": {
    "id": 84,
    "post_id": "bbfea083-da7f-492f-a29d-9f66848de9e4",
    "title": "Tech Survey 2026",
    "type": "survey",
    "is_live": true
  }
}