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
| Field | Type | Required | Description |
|---|---|---|---|
| X-API-Key | string | Yes | Your Membrane API key. |
| Content-Type | string | Yes | Must be application/json. |
Request body
| Field | Type | Required | Description |
|---|---|---|---|
| post_id | string | Yes | The post_id of the campaign. |
| is_live | boolean | Yes | true 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
}
}