UserPreferenceApi
valkyrai-api
All URIs are relative to http://localhost:8080/v1
Method | HTTP request | Description |
---|---|---|
deleteUserPreference | DELETE UserPreferenceApi | Delete a UserPreference. |
deleteUserPreference
Void
deleteUserPreference(id)
Delete a UserPreference.
Deletes a specific UserPreference.
Example
Import classes:
import com.valkyrlabs.ApiException;
import com.valkyrlabs.api.UserPreferenceApi;
UserPreferenceApi apiInstance = new UserPreferenceApi();
UUID id = UUID.randomUUID(); // UUID | Unique identifier for the UserPreference.
try {
Void result = apiInstance.deleteUserPreference(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling UserPreferenceApi#deleteUserPreference");
e.printStackTrace();
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
id | UUID | Unique identifier for the UserPreference. |
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
getUserPreference
UserPreference
getUserPreference(id)
Retrieve a single UserPreference
Retrieves a single UserPreference for a specific uid.
Example
Import classes:
import com.valkyrlabs.ApiException;
import com.valkyrlabs.api.UserPreferenceApi;
UserPreferenceApi apiInstance = new UserPreferenceApi();
UUID id = UUID.randomUUID(); // UUID | Unique identifier for the UserPreference.
try {
UserPreference result = apiInstance.getUserPreference(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling UserPreferenceApi#getUserPreference");
e.printStackTrace();
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
id | UUID | Unique identifier for the UserPreference. |
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
getUserPreferenceList
UserPreference
getUserPreferenceList()
Retrieve a list of UserPreferences
Retrieves a list of UserPreferences.
Example
Import classes:
import com.valkyrlabs.ApiException;
import com.valkyrlabs.api.UserPreferenceApi;
UserPreferenceApi apiInstance = new UserPreferenceApi();
try {
UserPreference result = apiInstance.getUserPreferenceList();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling UserPreferenceApi#getUserPreferenceList");
e.printStackTrace();
}
Parameters
This endpoint does not need any parameter.
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
postUserPreference
UserPreference
postUserPreference(userPreference)
Create a new UserPreference
Creates a new UserPreference.
Example
Import classes:
import com.valkyrlabs.ApiException;
import com.valkyrlabs.api.UserPreferenceApi;
UserPreferenceApi apiInstance = new UserPreferenceApi();
UserPreference userPreference = new UserPreference(); // UserPreference | UserPreference details.
try {
UserPreference result = apiInstance.postUserPreference(userPreference);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling UserPreferenceApi#postUserPreference");
e.printStackTrace();
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
userPreference | UserPreference | UserPreference details. |
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: application/json
- Accept: application/json
updateUserPreference
UserPreference
updateUserPreference(iduserPreference)
Update an existing UserPreference
Updates an existing UserPreference.
Example
Import classes:
import com.valkyrlabs.ApiException;
import com.valkyrlabs.api.UserPreferenceApi;
UserPreferenceApi apiInstance = new UserPreferenceApi();
UUID id = UUID.randomUUID(); // UUID | Unique identifier for the UserPreference.
UserPreference userPreference = new UserPreference(); // UserPreference | Updated UserPreference details.
try {
UserPreference result = apiInstance.updateUserPreference(iduserPreference);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling UserPreferenceApi#updateUserPreference");
e.printStackTrace();
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
id | UUID | Unique identifier for the UserPreference. | |
userPreference | UserPreference | Updated UserPreference details. |
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: application/json
- Accept: application/json
Generated Version Details
~ | value |
---|---|
GENERATOR VERSION | com.valkyrlabs:ValkyrAI API 1.0-SNAPSHOT |
API ARTIFACT | com.valkyrlabs.valkyrai-api.jar |
GENERATOR VERSION | org.openapitools.openapi-generator:7.5.0 |
GENERATOR CLASS | org.openapitools.codegen.languages.SpringCodegen |
GENERATED DATE | 2025-04-09T20:27:13.881184-07:00[America/Los_Angeles] |