PostService.Update Method

Namespace:
Weavy.Core.Services
Assembly:
Weavy.Core.dll

Update(Post, IEnumerable, IEnumerableOption>, IEnumerable, bool)

Updates a Post.

public static Post Update(Post post, IEnumerable<int> blobs = null, IEnumerable<PollOption> options = null, IEnumerable<int> embeds = null, bool auth = true)

Parameters

post
Post

The Post to update.

blobs
System.Collections.Generic.IEnumerable

Ids of new Blobs to attach.

options
System.Collections.Generic.IEnumerable
embeds
System.Collections.Generic.IEnumerable
auth
bool

True to check if the user has permission to edit the Post, otherwise false.

Returns

Post

The updated Post.