Complete an account connection for a run
POST
run_id*Run IdFormat
uuidorigin?string|nullapplication/json- body
code*CodeLength
1 <= length <= 2048iss?string|nullstate*StateLength
1 <= length <= 512Successful Response
application/json- response
connected?ConnectedDefault
trueresumed*Resumedrun*curl -X POST 'https://api.harnix.vn/v2/runs/497f6eca-6276-4993-bfeb-53cbbbba6f08/connection/complete' \ -H 'Content-Type: application/json' \ -d '{ "code": "string", "state": "string"}'Example Response
{ "connected": true, "resumed": true, "run": { "agent_id": "2b1e3b65-2c04-4fa2-a2d7-467901e98978", "attempt": 0, "conversation_id": "cc71b11a-25cd-4c2d-9950-df2cc38e3407", "created_at": "2019-08-24T14:15:22Z", "created_by": "string", "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6", "end_user_id": "c5ac076e-1e7a-4f0d-9ad4-cae618230def", "error": "string", "finished_at": "2019-08-24T14:15:22Z", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "input": "string", "kind": "string", "max_attempts": 0, "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b", "result": {}, "serial_key": "string", "started_at": "2019-08-24T14:15:22Z", "state": "string", "waiting_until": "2019-08-24T14:15:22Z" }}