AgentApi
valkyrai-api
All URIs are relative to http://localhost:8080/v1
| Method | HTTP request | Description |
|---|---|---|
| activateAgent | POST AgentApi | Activate an Agent (schedule workflows and register triggers) |
activateAgent
ActivateAgent200Response
activateAgent(id)
Activate an Agent (schedule workflows and register triggers)
Applies the Agent's CRON schedule to its workflows and registers configured event triggers.
Example
Import classes:
import com.valkyrlabs.ApiException;
import com.valkyrlabs.api.AgentApi;
AgentApi apiInstance = new AgentApi();
UUID id = UUID.randomUUID(); // UUID | Unique identifier for the Agent.
try {
ActivateAgent200Response result = apiInstance.activateAgent(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AgentApi#activateAgent");
e.printStackTrace();
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| id | UUID | Unique identifier for the Agent. |
Return type
ActivateAgent200Response
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
deleteAgent
Void
deleteAgent(id)
Delete a Agent.
Deletes a specific Agent.
Example
Import classes:
import com.valkyrlabs.ApiException;
import com.valkyrlabs.api.AgentApi;
AgentApi apiInstance = new AgentApi();
UUID id = UUID.randomUUID(); // UUID | Unique identifier for the Agent.
try {
Void result = apiInstance.deleteAgent(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AgentApi#deleteAgent");
e.printStackTrace();
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| id | UUID | Unique identifier for the Agent. |
Return type
Void
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
getAgent
Agent
getAgent(id)
Retrieve a single Agent
Retrieves a single Agent for a specific uid.
Example
Import classes:
import com.valkyrlabs.ApiException;
import com.valkyrlabs.api.AgentApi;
AgentApi apiInstance = new AgentApi();
UUID id = UUID.randomUUID(); // UUID | Unique identifier for the Agent.
try {
Agent result = apiInstance.getAgent(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AgentApi#getAgent");
e.printStackTrace();
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| id | UUID | Unique identifier for the Agent. |
Return type
Agent
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
getAgentList
Agent
getAgentList(pagesizesort)
Retrieve a list of Agents
Retrieves a list of Agents.
Example
Import classes:
import com.valkyrlabs.ApiException;
import com.valkyrlabs.api.AgentApi;
AgentApi apiInstance = new AgentApi();
Integer page = 0; // Integer |
Integer size = 20; // Integer |
List<String> sort = Arrays.asList(); // List<String> |
try {
Agent result = apiInstance.getAgentList(pagesizesort);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AgentApi#getAgentList");
e.printStackTrace();
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| page | Integer | [optional] [default to 0] | |
| size | Integer | [optional] [default to 20] | |
| sort | List<String> | [optional] |
Return type
Agent
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
patchAgentById
Agent
patchAgentById(idagent)
Partially update an existing Agent
Updates an existing Agent.
Example
Import classes:
import com.valkyrlabs.ApiException;
import com.valkyrlabs.api.AgentApi;
AgentApi apiInstance = new AgentApi();
UUID id = UUID.randomUUID(); // UUID | Unique identifier for the Agent.
Agent agent = new Agent(); // Agent | Merge-patch fields for Agent.
try {
Agent result = apiInstance.patchAgentById(idagent);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AgentApi#patchAgentById");
e.printStackTrace();
}