Skip to main content

UserPreferenceApi

valkyrai-api

All URIs are relative to http://localhost:8080/v1

MethodHTTP requestDescription
deleteUserPreferenceDELETE UserPreferenceApiDelete 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

NameTypeDescriptionNotes
idUUIDUnique identifier for the UserPreference.

Return type

Void

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

NameTypeDescriptionNotes
idUUIDUnique identifier for the UserPreference.

Return type

UserPreference

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

getUserPreferenceList

UserPreference
getUserPreferenceList(pagesizesort)

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();
Integer page = 0; // Integer |
Integer size = 20; // Integer |
List<String> sort = Arrays.asList(); // List<String> |

try {
UserPreference result = apiInstance.getUserPreferenceList(pagesizesort);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling UserPreferenceApi#getUserPreferenceList");
e.printStackTrace();
}

Parameters

NameTypeDescriptionNotes
pageInteger[optional] [default to 0]
sizeInteger[optional] [default to 20]
sortList<String>[optional]

Return type

UserPreference

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

patchUserPreferenceById

UserPreference
patchUserPreferenceById(iduserPreference)

Partially 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 | Merge-patch fields for UserPreference.

try {
UserPreference result = apiInstance.patchUserPreferenceById(iduserPreference);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling UserPreferenceApi#patchUserPreferenceById");
e.printStackTrace();
}

Parameters

NameTypeDescriptionNotes
idUUIDUnique identifier for the UserPreference.
userPreferenceUserPreferenceMerge-patch fields for UserPreference.

Return type

UserPreference

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/merge-patch+jsonapplication/json-patch+jsonapplication/json
  • 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

NameTypeDescriptionNotes
userPreferenceUserPreferenceUserPreference details.

Return type

UserPreference

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

NameTypeDescriptionNotes
idUUIDUnique identifier for the UserPreference.
userPreferenceUserPreferenceUpdated UserPreference details.

Return type

UserPreference

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

Generated Version Details

~value
GENERATOR VERSIONcom.valkyrlabs:ValkyrAI API 1.0.3-SNAPSHOT
API ARTIFACTcom.valkyrlabs.valkyrai-api.jar
GENERATOR VERSIONorg.openapitools.openapi-generator:7.5.0
GENERATOR CLASSorg.openapitools.codegen.languages.SpringCodegen
GENERATED DATE2026-04-20T19:24:54.195235-07:00[America/Los_Angeles]