Campaign Management

Update Cohort Rewards

Update the cohort reward distribution for a campaign. Cohort rewards are automatically created at campaign creation, but you can customize the reward amounts per cohort. cohort_5_reward must equal the campaign's reward_amount, and cohort_1_reward must be ≥ 3.

PATCH/nfthing/campaign/cohort-rewards

Headers

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

Request body

FieldTypeRequiredDescription
post_idstringYesThe post_id of the campaign.
cohort_1_rewardnumberYesReward for cohort 1 (attention score 0–2). Must be ≥ 3.
cohort_2_rewardnumberYesReward for cohort 2 (attention score 2–4).
cohort_3_rewardnumberYesReward for cohort 3 (attention score 4–6).
cohort_4_rewardnumberYesReward for cohort 4 (attention score 6–8).
cohort_5_rewardnumberYesReward for cohort 5 (attention score 8–10). Must equal the campaign's reward_amount.

Example request

PATCH /nfthing/campaign/cohort-rewards
{
  "post_id": "bbfea083-da7f-492f-a29d-9f66848de9e4",
  "cohort_1_reward": 3,
  "cohort_2_reward": 6,
  "cohort_3_reward": 9,
  "cohort_4_reward": 12,
  "cohort_5_reward": 15
}

Example response

200 OK
{
  "success": true,
  "message": "Cohort rewards updated successfully",
  "data": {
    "post_id": "bbfea083-da7f-492f-a29d-9f66848de9e4",
    "title": "Tech Survey 2026",
    "type": "survey",
    "cohort_rewards": {
      "cohort_1_reward": 3,
      "cohort_2_reward": 6,
      "cohort_3_reward": 9,
      "cohort_4_reward": 12,
      "cohort_5_reward": 15
    }
  }
}