Hướng dẫn AgentFlow

resume_instance

POST/instances/{instance_id}/resume

Only the run the operator paused may be resumed: a member of a paused lineage is released through its root, or releasing it alone would put it back to work under an ancestor still held.

A member that finished, failed or was cancelled while held keeps its terminal status — resume releases a hold, it never resurrects a run. An app-held target must still be live; a terminal app-held root cannot release its descendants. Operator-owned terminal-root release is preserved.

AuthorizationBearer <token>

A service principal's credential, or a person's access token, AgentFlow's own or an installed app's. A service principal's effective permissions are its role permissions intersected with the credential's scopes.

In: header

Path Parameters

instance_id*string

Instance id — must be the run the pause started from

Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Body of POST /instances/{id}/resume.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X POST "https://example.com/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/resume" \  -H "Content-Type: application/json" \  -d '{    "expected_updated_at": "2019-08-24T14:15:22Z"  }'
{  "resumed": 0,  "status": "running",  "ticked": 0}