Unable to update metadata memberstack 2.0 via backend Answered

Post author
Francesco biviano
Hi There MemberStack Community,
 
I need a little assistance I am using MemberStack 2.0 I am having issue with updating metadata via backend the function that was working for memberstack 1.0 is not working for 2.0 but I can't find the function to update metadata record.
 
This function that was working for memberstack 1.0 does not work for memberstack 2.0
 
member.updateMetaData(metadata);
 
At the moment I am unable to update metdata as was done in version 1.0 so does anyone know how to do it? 

Comments

4 comments

  • Comment author
    Duncan Hamra
    • Edited

    Josh-Lopez Could you help Francesco biviano and I find the correct method for updating a member's metadata?

    0
  • Comment author
    Josh Lopez

    Hey Francesco biviano 👋 

    You can update the member with the REST version of the admin package by using the "update a member" endpoint, you can see an example here. If you are using the Node version you can see an example here.

    1
  • Comment author
    Duncan Hamra

    Thanks, Josh! 

    Francesco biviano For added context: In Memberstack 2.0, you can update JSON and Custom Fields using the frontend & backend API. Metadata however, can only be updated from the backend

    If you need to make these updates in the front-end I recommend using JSON instead.

    0
  • Comment author
    Francesco biviano

    Thanks a lot for the help. really appreciated 

    0

Please sign in to leave a comment.