Skip to main content

CustomerApi

valkyrai-api

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

MethodHTTP requestDescription
deleteCustomerDELETE CustomerApiDelete a Customer.

deleteCustomer

Void
deleteCustomer(id)

Delete a Customer.

Deletes a specific Customer.

Example

Import classes:
import com.valkyrlabs.ApiException;
import com.valkyrlabs.api.CustomerApi;


CustomerApi apiInstance = new CustomerApi();
UUID id = UUID.randomUUID(); // UUID | Unique identifier for the Customer.

try {
Void result = apiInstance.deleteCustomer(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CustomerApi#deleteCustomer");
e.printStackTrace();
}

Parameters

NameTypeDescriptionNotes
idUUIDUnique identifier for the Customer.

Return type

Void

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

getCustomer

Customer
getCustomer(id)

Retrieve a single Customer

Retrieves a single Customer for a specific uid.

Example

Import classes:
import com.valkyrlabs.ApiException;
import com.valkyrlabs.api.CustomerApi;


CustomerApi apiInstance = new CustomerApi();
UUID id = UUID.randomUUID(); // UUID | Unique identifier for the Customer.

try {
Customer result = apiInstance.getCustomer(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CustomerApi#getCustomer");
e.printStackTrace();
}

Parameters

NameTypeDescriptionNotes
idUUIDUnique identifier for the Customer.

Return type

Customer

Authorization

No authorization required

HTTP request headers

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

getCustomerList

Customer
getCustomerList()

Retrieve a list of Customers

Retrieves a list of Customers.

Example

Import classes:
import com.valkyrlabs.ApiException;
import com.valkyrlabs.api.CustomerApi;


CustomerApi apiInstance = new CustomerApi();

try {
Customer result = apiInstance.getCustomerList();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CustomerApi#getCustomerList");
e.printStackTrace();
}

Parameters

This endpoint does not need any parameter.

Return type

Customer

Authorization

No authorization required

HTTP request headers

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

postCustomer

Customer
postCustomer(customer)

Create a new Customer

Creates a new Customer.

Example

Import classes:
import com.valkyrlabs.ApiException;
import com.valkyrlabs.api.CustomerApi;


CustomerApi apiInstance = new CustomerApi();
Customer customer = new Customer(); // Customer | Customer details.

try {
Customer result = apiInstance.postCustomer(customer);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CustomerApi#postCustomer");
e.printStackTrace();
}

Parameters

NameTypeDescriptionNotes
customerCustomerCustomer details.

Return type

Customer

Authorization

No authorization required

HTTP request headers

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

updateCustomer

Customer
updateCustomer(idcustomer)

Update an existing Customer

Updates an existing Customer.

Example

Import classes:
import com.valkyrlabs.ApiException;
import com.valkyrlabs.api.CustomerApi;


CustomerApi apiInstance = new CustomerApi();
UUID id = UUID.randomUUID(); // UUID | Unique identifier for the Customer.
Customer customer = new Customer(); // Customer | Updated Customer details.

try {
Customer result = apiInstance.updateCustomer(idcustomer);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CustomerApi#updateCustomer");
e.printStackTrace();
}

Parameters

NameTypeDescriptionNotes
idUUIDUnique identifier for the Customer.
customerCustomerUpdated Customer details.

Return type

Customer

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]