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()

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

UserPreference

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

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-SNAPSHOT
API ARTIFACTcom.valkyrlabs.valkyrai-api.jar
GENERATOR VERSIONorg.openapitools.openapi-generator:7.5.0
GENERATOR CLASSorg.openapitools.codegen.languages.SpringCodegen
GENERATED DATE2025-04-09T20:27:13.881184-07:00[America/Los_Angeles]