Update Task State
PUT/states/{state_id}
Update Task State
curl http://localhost:5003/states/$STATE_ID \
-X PUT \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $AGENTEX_SDK_API_KEY" \
-d '{
"state": {
"foo": "bar"
}
}'{
"id": "id",
"agent_id": "agent_id",
"created_at": "2019-12-27T18:11:19.117Z",
"state": {
"foo": "bar"
},
"task_id": "task_id",
"updated_at": "2019-12-27T18:11:19.117Z"
}Returns Examples
{
"id": "id",
"agent_id": "agent_id",
"created_at": "2019-12-27T18:11:19.117Z",
"state": {
"foo": "bar"
},
"task_id": "task_id",
"updated_at": "2019-12-27T18:11:19.117Z"
}