Campaigns
v1

Update a specific campaign using its campaign ID. Supports changes to campaign attributes such as name, budget, status, associated list or custom feed, and campaign settings.

:::info Requires the campaigns:write OAuth2 scope. :::

patch/v1/campaigns/{id}

Request

  • Base URL
    https://api.leadfeeder.com
  • URL
    https://api.leadfeeder.com/v1/campaigns/{id}
  • Auth
    • API key in header X-Api-Key
    • or OAuth 2
      Authorization code: https://api.leadfeeder.com/v1/oauth/authorize
      Token URL: https://api.leadfeeder.com/v1/oauth/token scopes: campaigns:write

Path parameters

idstring required

The campaign ID.

Query parameters

account_idstring required

The Leadfeeder Account ID. The Account ID can be retrieved using the List Accounts endpoint.

Request body

Example request

{
  "data": {
    "relationships": {
      "campaign_settings": {
        "id": "1234"
      },
      "list": {
        "id": "company_42"
      }
    }
  }
}

Response

Success

Example response

{
  "data": {
    "attributes": {
      "budget": 1000,
      "budget_left": 1000,
      "budget_type": "total",
      "created_at": "2026-04-01T09:15:00Z",
      "currency": "EUR",
      "end_date": "2026-08-01T00:00:00Z",
      "location_type": "global",
      "name": "Q2 EMEA enterprise push",
      "start_date": "2026-05-01T00:00:00Z",
      "status": "draft",
      "total_budget": 1000,
      "updated_at": "2026-04-12T11:30:00Z"
    },
    "id": "1234",
    "relationships": {
      "campaign_locations": [
        {
          "id": "98765"
        }
      ],
      "campaign_settings": {
        "id": "1234"
      },
      "campaign_summary": {
        "id": "1234"
      },
      "created_by": {
        "id": "12345"
      },
      "custom_feed": {
        "id": "feed-100"
      },
      "list": {
        "id": "company_42"
      }
    },
    "type": "campaign"
  },
  "meta": {
    "request_id": "cf054205-dd8c-4473-8689-07c30fe0789f"
  }
}

Changes

    • breaking

      removed the enum value ended of the request property //

    • breaking

      removed the enum value scheduled of the request property //

    • breaking

      removed the enum value stopped of the request property //

    • info

      added the optional property //////// to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status