PUT api/multiagentstatemachine/updateagentexecutionstate

Upserts agent execution state via [dbo].[UpdateMultiAgentStateMachineExecutionDetails]. Matches existing rows by AgentID and WorkflowTypeID; if none exist, inserts a new row with WorkflowName = "Agentic Hedge " + AgentsWorkflow.Asset and StepName = Agents.AgentName.

Request Information

URI Parameters

None.

Body Parameters

AgentID, WorkflowTypeID, ExecutionOrder, MaxRetries, IsParallel, FailureAction, IsActive

UpdateAgentExecutionStateDto
NameDescriptionTypeAdditional information
AgentID

integer

None.

WorkflowTypeID

integer

None.

ExecutionOrder

integer

None.

MaxRetries

integer

None.

IsParallel

boolean

None.

FailureAction

string

None.

IsActive

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "agentID": 1,
  "workflowTypeID": 2,
  "executionOrder": 3,
  "maxRetries": 4,
  "isParallel": true,
  "failureAction": "sample string 6",
  "isActive": true
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Result (bool) indicating if a row was updated or inserted

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.