MCPcopy Create free account
hub / github.com/GetStream/stream-js / updateActivity

Method updateActivity

src/client.ts:837–841  ·  view source on GitHub ↗

* Updates one activity on the stream * @link https://getstream.io/activity-feeds/docs/node/adding_activities/?language=js#updating-activities * @param {UpdateActivity } activity The activity to update * @return {Promise }

(activity: UpdateActivity<StreamFeedGenerics>)

Source from the content-addressed store, hash-verified

835 * @return {Promise<APIResponse>}
836 */
837 updateActivity(activity: UpdateActivity<StreamFeedGenerics>) {
838 this._throwMissingApiSecret();
839
840 return this.updateActivities([activity]);
841 }
842
843 /**
844 * Retrieve activities by ID or foreign_id and time

Callers 3

client_test.jsFile · 0.80
test.tsFile · 0.80
client_test.jsFile · 0.80

Calls 2

updateActivitiesMethod · 0.95

Tested by

no test coverage detected