diff --git a/webapp/platform/client/src/client4.ts b/webapp/platform/client/src/client4.ts index 6cd0458118..65357d336b 100644 --- a/webapp/platform/client/src/client4.ts +++ b/webapp/platform/client/src/client4.ts @@ -2130,6 +2130,14 @@ export default class Client4 { return result; }; + createPostEphemeral = async (userID: string, post: PartialExcept) => { + const result = await this.doFetch( + `${this.getPostsRoute()}/ephemeral`, + {method: 'post', body: JSON.stringify({user_id: userID, post})}, + ); + return result; + }; + updatePost = (post: Post) => { return this.doFetch( `${this.getPostRoute(post.id)}`,