Class UserProfilesController
- Namespace
- FoundationaLLM.Core.API.Controllers
- Assembly
- FoundationaLLM.Core.API.dll
Provides methods for retrieving and managing user profiles.
[Authorize(AuthenticationSchemes = "Bearer", Policy = "MicrosoftEntraIDStandard")]
[ApiController]
[Route("instances/{instanceId}/[controller]")]
public class UserProfilesController : ControllerBase
- Inheritance
-
UserProfilesController
- Inherited Members
- Extension Methods
Remarks
Constructor for the UserProfiles Controller.
Constructors
UserProfilesController(IUserProfileService)
Provides methods for retrieving and managing user profiles.
public UserProfilesController(IUserProfileService userProfileService)
Parameters
userProfileService
IUserProfileServiceService that provides methods for managing the user profile.
Remarks
Constructor for the UserProfiles Controller.
Methods
AddAgentToUserProfile(string, UserProfileUpdateRequest)
Adds an agent to the user's profile.
[HttpPost("add-agent")]
public Task<IActionResult> AddAgentToUserProfile(string instanceId, UserProfileUpdateRequest updateRequest)
Parameters
instanceId
stringThe FoundationaLLM instance identifier.
updateRequest
UserProfileUpdateRequestThe user profile update request.
Returns
Index(string)
Retrieves user profiles.
[HttpGet(Name = "GetUserProfile")]
public Task<IActionResult> Index(string instanceId)
Parameters
instanceId
stringThe instance identifier.
Returns
RemoveAgentFromUserProfile(string, UserProfileUpdateRequest)
Adds an agent to the user's profile.
[HttpPost("remove-agent")]
public Task<IActionResult> RemoveAgentFromUserProfile(string instanceId, UserProfileUpdateRequest updateRequest)
Parameters
instanceId
stringThe FoundationaLLM instance identifier.
updateRequest
UserProfileUpdateRequestThe user profile update request.