Skip to main content

TaskApi

valkyrai-api

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

MethodHTTP requestDescription
deleteTaskDELETE TaskApiDelete 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

NameTypeDescriptionNotes
idUUIDUnique identifier for the Task.

Return type

Void

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

NameTypeDescriptionNotes
idUUIDUnique identifier for the Task.

Return type

Task

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

Task

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

NameTypeDescriptionNotes
taskTaskTask details.

Return type

Task

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

NameTypeDescriptionNotes
idUUIDUnique identifier for the Task.
taskTaskUpdated Task details.

Return type

Task

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]