OpportunityApi
valkyrai-api
All URIs are relative to http://localhost:8080/v1
Method | HTTP request | Description |
---|---|---|
deleteOpportunity | DELETE OpportunityApi | Delete 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
Name | Type | Description | Notes |
---|---|---|---|
id | UUID | Unique identifier for the Opportunity. |
Return type
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
Name | Type | Description | Notes |
---|---|---|---|
id | UUID | Unique identifier for the Opportunity. |
Return type
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
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
Name | Type | Description | Notes |
---|---|---|---|
opportunity | Opportunity | Opportunity details. |
Return type
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
Name | Type | Description | Notes |
---|---|---|---|
id | UUID | Unique identifier for the Opportunity. | |
opportunity | Opportunity | Updated Opportunity 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] |