hi ! i had one small doubt regarding the request b...
# prefect-community
d
hi ! i had one small doubt regarding the request body for running deployments using openapi what all fields are necessary to provide while using api/deployments/{id}/create_flow_run
Copy code
{
  "state": {
    "type": "SCHEDULED",
    "name": "string",
    "message": "Run started",
    "data": "string",
    "state_details": {
      "flow_run_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "task_run_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "child_flow_run_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "scheduled_time": "2022-10-31T06:00:35.234Z",
      "cache_key": "string",
      "cache_expiration": "2022-10-31T06:00:35.234Z",
      "untrackable_result": false
    },
    "timestamp": "2022-10-31T06:00:35.234Z",
    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
  },
  "name": "my-flow-run",
  "parameters": {},
  "context": {
    "my_var": "my_val"
  },
  "infrastructure_document_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "empirical_policy": {
    "retries": 0,
    "retry_delay": 0
  },
  "tags": [
    "tag-1",
    "tag-2"
  ],
  "idempotency_key": "string",
  "parent_task_run_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
1
j
Hi Deepanshu. You can refer to the docs for creating a flow run from a deployment here.