Feed Item

createFundraisingTeamFeedItem

Create a FeedItem (Comment) for specified Fundraising Team

post/fundraising-teams/{fundraising_team}/feed-items

Request

  • Base URL
    https://pro.gofundme.com/api/2.0
  • Auth
    OAuth 2
    Password
    Token URL: /oauth2/auth

Path parameters

fundraising_teaminteger required
Example:209745

The specified Fundraising Team ID

Request body

commentstring

Comment for the Fundraising Team

Example request

{
  "comment": "I just want to say that I think you all are doing a great job. Keep up the good work!"
}

Response

Success

idinteger

Primary identifier of record

agent_idinteger nullable

Primary identifier of the Agent that performed interaction associated with Feed Item

agent_type'member' | 'business' nullable

Type of Agent that performed interaction associated with Feed Item

agent_namestring nullable

Name of Agent that performed interaction associated with Feed Item. When the owning Organization has Contact-First Architecture enabled (npo_apiv2_ff_contact_first_architecture), Member-morph agents return the same value as author_display_name (see that field for the resolution order); items with no agent (for example company-only offline donations) keep the stored value, so read author_display_name for those. Business agents are unaffected. Prefer the new author_display_name field for new consumers — agent_name is preserved for back-compat with existing apps and will be cleaned up per-app under PRO-2280.

member_namestring nullable

Snapshotted name of the Member associated with the Feed Item (legacy alias preceding the polymorphic agent relation). When the owning Organization has Contact-First Architecture enabled, this is replaced with the same value as author_display_name (see that field for the resolution order), and is null for Business agents. Prefer the new author_display_name field for new consumers — member_name is preserved for back-compat with existing apps and will be cleaned up per-app under PRO-2280.

feedable_idinteger

Primary identifier of Fundraising Entity associated with Feed Item’s described interaction

feedable_typestring

Type of the Fundraising Entity associated with Feed Item’s described interaction

feedable_valuestring nullable

Name or title of the Item. Under Contact-First Architecture (npo_apiv2_ff_contact_first_architecture), this is null when feedable_type is fundraising_page (any row type) — the snapshotted page title would otherwise re-leak member-seeded names from unguarded write paths (CompleteRegistrations, CreateFundraisingPageForLead, and the registration-recovery commands). It is also null for fundraising_team when the team's name was erased by the organization PII erasure, or when the item's organization cannot be resolved (fail-closed).

linkable_idinteger nullable

Primary identifier of Entity whose creation, update, or association is described by Feed Item

linkable_typestring nullable

Type of the Entity whose creation, update, or association is described by Feed Item

linkable_valuestring nullable

Name or title of the Entity whose creation, update, or association is described by Feed Item. Under Contact-First Architecture (npo_apiv2_ff_contact_first_architecture), this is null when linkable_type is fundraising_page (any row type — the snapshotted page title would otherwise re-leak member-seeded names), for fundraising_team when the team's name was erased by the organization PII erasure or the item's organization cannot be resolved (fail-closed), and for TYPE_ASSOCIATION items where linkable_type is a Member morph (the persisted column would otherwise re-leak the member's full name).

linkable_effective_atstring date-time

Date/time when Linkable is effective

type'comment' | 'onboarding' | 'creation' | 'update' | 'association'

Type of the Item

commentstring

Comment

comments_countinteger nullable

Amount of Comments that the Feed Item has

likes_countinteger nullable

Amount of Likes that the Feed has

created_atstring date-time

Date/time when object was created

updated_atstring date-time

Date/time when object was updated

visibility'public' | 'admin'

Visibility status of the Item

author_display_namestring nullable

Display name for the item author. Populated when the owning Organization has Contact-First Architecture enabled (npo_apiv2_ff_contact_first_architecture); also populated on the fail-closed path when the owning Organization cannot be resolved on a supporter-bearing feedable type (soft-deleted feedable, etc.) — Business-agent items surface the business display name and Member-agent items surface null. Resolves, in order, to the business display name for Business-agent items; the non-blank Display Name stored on the transaction (its member_name) for non-anonymous same-organization transaction-linked items whose author is the transaction's member (or where neither has one), unless it matches the name on the transaction's member record (ignoring Unicode form, case and spacing; a stored name at the 64-character column width that begins that name also counts as a match) or that record cannot be read, and not when that member's Supporter was deleted; the supporter's first + last name for member-authored items; the name entered on the transaction (billing name, else company name) for non-anonymous same-organization transaction-linked items whose Supporter is missing or has a blank name (not when that Supporter was deleted); for creation-type items on fundraising_page / fundraising_team feedables with no Supporter, the page / team title (only when it does not match the author member's snapshotted name); otherwise null. New consumers should prefer this field over member_name / agent_name.

Example response

{
  "id": 987,
  "agent_id": 438475,
  "agent_type": "member",
  "agent_name": "John Doe",
  "member_name": "Jane Doe",
  "feedable_id": 4857,
  "feedable_type": "campaign",
  "feedable_value": "GoFundMe Pro fundraising campaign",
  "linkable_id": 4832,
  "linkable_type": "fundraising_page",
  "linkable_value": "How to keep donors engaged",
  "linkable_effective_at": "2021-04-23T10:25:03Z",
  "type": "creation",
  "comment": "I just want to say that I think you all are doing a great job. Keep up the good work!",
  "comments_count": 78,
  "likes_count": 8,
  "created_at": "2021-04-23T10:25:03Z",
  "updated_at": "2021-04-23T10:25:03Z",
  "visibility": "public",
  "latest_comments": [
    {
      "body": "Example Comment",
      "commentable_id": 876,
      "commentable_type": "feed_item",
      "commenter_name": "GoFundMe Pro Commenter",
      "author_display_name": "Pat Supporter",
      "created_at": "2021-04-23T08:23:21Z",
      "id": 47281,
      "likes_count": 5,
      "member_id": 2012,
      "updated_at": "2021-04-23T08:23:21Z"
    }
  ],
  "author_display_name": "Pat Supporter"
}

Changes

No recorded changes to this operation across all 9 revisions of this API.