TaskApi
valkyrai-api
All URIs are relative to http://localhost:8080/v1
Method | HTTP request | Description |
---|---|---|
deleteTask | DELETE TaskApi | Delete a Task. |
deleteTask
Void
deleteTask(id)
Delete a Task.
Deletes a specific Task.
Example
Import classes:
import com.valkyrlabs.ApiException;
import com.valkyrlabs.api.TaskApi;
TaskApi apiInstance = new TaskApi();
UUID id = UUID.randomUUID(); // UUID | Unique identifier for the Task.
try {
Void result = apiInstance.deleteTask(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TaskApi#deleteTask");
e.printStackTrace();
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
id | UUID | Unique identifier for the Task. |
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
getTask
Task
getTask(id)
Retrieve a single Task
Retrieves a single Task for a specific uid.
Example
Import classes:
import com.valkyrlabs.ApiException;
import com.valkyrlabs.api.TaskApi;
TaskApi apiInstance = new TaskApi();
UUID id = UUID.randomUUID(); // UUID | Unique identifier for the Task.
try {
Task result = apiInstance.getTask(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TaskApi#getTask");
e.printStackTrace();
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
id | UUID | Unique identifier for the Task. |
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
getTaskList
Task
getTaskList()
Retrieve a list of Tasks
Retrieves a list of Tasks.
Example
Import classes:
import com.valkyrlabs.ApiException;
import com.valkyrlabs.api.TaskApi;
TaskApi apiInstance = new TaskApi();
try {
Task result = apiInstance.getTaskList();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TaskApi#getTaskList");
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
postTask
Task
postTask(task)
Create a new Task
Creates a new Task.
Example
Import classes:
import com.valkyrlabs.ApiException;
import com.valkyrlabs.api.TaskApi;
TaskApi apiInstance = new TaskApi();
Task task = new Task(); // Task | Task details.
try {
Task result = apiInstance.postTask(task);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TaskApi#postTask");
e.printStackTrace();
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
task | Task | Task details. |
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: application/json
- Accept: application/json
updateTask
Task
updateTask(idtask)
Update an existing Task
Updates an existing Task.
Example
Import classes:
import com.valkyrlabs.ApiException;
import com.valkyrlabs.api.TaskApi;
TaskApi apiInstance = new TaskApi();
UUID id = UUID.randomUUID(); // UUID | Unique identifier for the Task.
Task task = new Task(); // Task | Updated Task details.
try {
Task result = apiInstance.updateTask(idtask);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TaskApi#updateTask");
e.printStackTrace();
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
id | UUID | Unique identifier for the Task. | |
task | Task | Updated Task 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] |