Can I update a custom post?

I am using https://docs.amity.co/social/web/posts#create-a-custom-post for creating user post.

I’m trying to update the custom post following https://docs.amity.co/social/web/posts#update-post

const post = PostRepository.updatePost({
    postId: 'post123',
    data: { 
     text: 'hello!',
     otherField: 'anything',
    },
});

But I got the error message )

ASCError: ASCWebSDK: Parameters validation error!

Is there any way to update a custom post properly?

@Kamolla

Thanks for the question, I don’t think we have a field called otherField. I believe that’s the reason why it says validation error.

Thank you for a quick reply.

Is there other way to update a custom post? our custom post contains text, metadata, imageIds, other custom fields.

@Kamolla

Unfortunately only text is editable via web sdk at the moment (Posts - Amity Docs)