Sample code bug in new Actions documentation(Post-User-Registration)

The code sample references:
api.user.setAppMetadata("my-api-user-id", remoteUser.id);

But according the documentation above, the api object is not available for this type of trigger. Which is correct?

Hey there @harrisonm !

I allowed myself to move your topic to the feedback category as I think that’s a better place for it and I closed your initial post.

Regarding your question, let me follow-up with the team to see what is actually correct here. I’ll get back to you soon!

Just found it! It seems like it’s a copy/paste error from our side.

The api object is not available in post-user-reg at this time. We’ll get the docs updated.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.