XF 2.1 Possible to promote an user via API?

emiya

Member
Hello,

I want to build an external subscription page for xenforo and want to know, if it's possible to promote an user with the REST API from xenforo?
The usergroup promotion should be automatically like the same as the inbuild function from xenforo itself, just on an external page.

Has anyone make the experience with it and can give me some advices?

Kind regards!
 
The short answer is that user upgrades aren't exposed via the API. You could manually change the user's groups, though you would be responsible to undoing it when the subscription ends.

Otherwise, you'd likely need to custom develop an endpoint to trigger the user upgrade.
 
Back
Top Bottom