[RSS Feed/News] User API Secondary Groups

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
I'm trying to update the user's secondary groups using a super user api key. I want to add the user to group 5, which is a test group I've created. I'm getting a success message but the secondary groups haven't changed. Anyone know why it's not updating?

PHP:

Code:
<?php

$vars = [
    'api_bypass_permissions' => 1,
    'username' => 'admin',
    'secondary_group_ids' => [4, 5],
];


$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,"https://urbanmc.tk/api/users/3/");
curl_setopt($ch, CURLOPT_POST...

Read more

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom