I would like to mark a user as staff through an external application, but upon sending the request the user gets returned without the is_staff field being updated.
Here is the code that I am using to make said request:
const params = new URLSearchParams();
I extended the "XF\Entity\User" class to add a new field to get it when authorizing with ('api/auth/from-session').
The code looks like this:
class User extends XFCP_User
protected function setupApiResultData(\XF\Api\Result\EntityResult $result, $verbosity = self::VERBOSITY_NORMAL, array...
So the problem: cannot change user password true REST API if the user is Supper Administrator (don't know about simple admin or moderator)
how to reproduce
1) Create API key with full access (login with this dummy user as admin)
2) Create dummy user -> make him a supper administrator
I'm having a problem when trying to post the first attachment for a conversation. I follow an analogous process when posting the first attachment for a new thread. When posting a new thread with attachments, I upload all the attachments before. The first attachment returns a key...
I'm using the rest api to develop an app, and I'm a little bit confused with the information returned by the api. I have a clean XF installation in my development environment, that is the user groups and the permissions per group are the default ones, and I have not customized the...
i am hitting api from postman and i am getting the same error every time regarding my endpoints are not found i am attaching screenshot of postman also i am send super user xf-api-key with every request.
kindly suggest what should i do to solve this issue.
It looks like the rest API returns comments on a profile post in newest-first ordering without a parameter to change the ordering according to the documentation at https://xenforo.com/community/pages/api-endpoints/#route_get_profile_posts_id_comments. Would it be possible to allow specifying a...
Currently the blockquote markup returned in message_parsed renders the following:
<blockquote class="xfBb-quote" data-name="UserName"><p>Quoted post text.</p></blockquote>
In addition to the data-name attribute it would be valuable to also have (just making up names):
data-original = gets the...
I saw some old examples of login authentication using /api/auth but looks like the rest api changed these in 2.1/2.2.
Is anyone familiar with using libcurl and getting access to the /api/auth.
I know it grabs users information once it recognizes the request.
All attempts lead to the API key not...
The Auth API endpoint requires the sensitive info such as username and password, session id, and cookie to be passed as query parameters.
Request URLs get logged in server access logs, which record these credentials plain text into logs that may not even be in the hands of the forum owner...
I would love to make use of the XF REST API, however, with a lack of option to grant only certain permissions to a user, and no way of restricting access to a whitelist of IP addresses, I feel that enabling the API with a super user key (which is required for user login testing) is akin to...
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.
I have a couple of questions:
1) TAGGING - Is there a limit to the number of tags I can create without seeing significant performance issues? To start I plan to use 1000, but this will grow significantly as the forum expands. A tag will be created for individual stocks on a stocks...
When retrieving threads, users, forums, posts, profile posts, media, resources etc from the REST API, it would be useful to include a canonical URL in the results for each record returned to make it easier to link directly to the element from external applications.
I know we could construct a...