giperfast
Member
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:
	
	
	
		
After that I try to update this field with ('api/users/$user_id'), but the field is not updated.
The request looks like this:
		
		
	
	
		 
	
And the result is this:
		 
	
				
			The code looks like this:
		PHP:
	
	class User extends XFCP_User
{
    protected function setupApiResultData(\XF\Api\Result\EntityResult $result, $verbosity = self::VERBOSITY_NORMAL, array $options = [])
    {
        parent::setupApiResultData($result, $verbosity, $options);
        $result->includeColumn(['system_information']);
    }
    public static function getStructure(Structure $structure)
    {
        $structure = parent::getStructure($structure);
        $structure->columns['system_information'] = ['type' => self::STR, 'default' => '', 'maxLength' => 1024, 'changeLog' => true, 'api' => true];
      
        return $structure;   
    }
}After that I try to update this field with ('api/users/$user_id'), but the field is not updated.
The request looks like this:
 
	And the result is this:
 
	 
 
		
 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		