Skip to main content

OpportunityApi

valkyrai-api

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

MethodHTTP requestDescription
deleteOpportunityDELETE OpportunityApiDelete a Opportunity.

deleteOpportunity

Void
deleteOpportunity(id)

Delete a Opportunity.

Deletes a specific Opportunity.

Example

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


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

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

Parameters

NameTypeDescriptionNotes
idUUIDUnique identifier for the Opportunity.

Return type

Void

Authorization

No authorization required

HTTP request headers

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

getOpportunity

Opportunity
getOpportunity(id)

Retrieve a single Opportunity

Retrieves a single Opportunity for a specific uid.

Example

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


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

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

Parameters

NameTypeDescriptionNotes
idUUIDUnique identifier for the Opportunity.

Return type

Opportunity

Authorization

No authorization required

HTTP request headers

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

getOpportunityList

Opportunity
getOpportunityList()

Retrieve a list of Opportunitys

Retrieves a list of Opportunitys.

Example

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


OpportunityApi apiInstance = new OpportunityApi();

try {
Opportunity result = apiInstance.getOpportunityList();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling OpportunityApi#getOpportunityList");
e.printStackTrace();
}

Parameters

This endpoint does not need any parameter.

Return type

Opportunity

Authorization

No authorization required

HTTP request headers

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

postOpportunity

Opportunity
postOpportunity(opportunity)

Create a new Opportunity

Creates a new Opportunity.

Example

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


OpportunityApi apiInstance = new OpportunityApi();
Opportunity opportunity = new Opportunity(); // Opportunity | Opportunity details.

try {
Opportunity result = apiInstance.postOpportunity(opportunity);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling OpportunityApi#postOpportunity");
e.printStackTrace();
}

Parameters

NameTypeDescriptionNotes
opportunityOpportunityOpportunity details.

Return type

Opportunity

Authorization

No authorization required

HTTP request headers

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

updateOpportunity

Opportunity
updateOpportunity(idopportunity)

Update an existing Opportunity

Updates an existing Opportunity.

Example

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


OpportunityApi apiInstance = new OpportunityApi();
UUID id = UUID.randomUUID(); // UUID | Unique identifier for the Opportunity.
Opportunity opportunity = new Opportunity(); // Opportunity | Updated Opportunity details.

try {
Opportunity result = apiInstance.updateOpportunity(idopportunity);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling OpportunityApi#updateOpportunity");
e.printStackTrace();
}

Parameters

NameTypeDescriptionNotes
idUUIDUnique identifier for the Opportunity.
opportunityOpportunityUpdated Opportunity details.

Return type

Opportunity

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]