https://prefect.io logo
Title
n

Nimesh Kumar

01/31/2023, 7:49 PM
Hi i am trying to trigger the flow run from the deployment api i.e. "http://orion:4200/api/deployments/" the body (JSON) i am sending
{
  "name": "deploymentUsingApi",
  "flow_id": "f27b41b3-6fd8-4356-b443-6cd08eab4cee",
  "is_schedule_active": true,
  "parameters": {},
  "tags": [
    "tag-1",
    "tag-2"
  ],
  "manifest_path": "api-manifest",
  "work_queue_name": "test_queue",
  "worker_pool_name": "my-worker-pool",
  "worker_pool_queue_name": "my-worker-pool-queue",
  "storage_document_id": "b2e8f87c-1c1f-499a-a143-a8f2b6253714",
  "infrastructure_document_id": "b2e8f87c-1c1f-499a-a143-a8f2b6253714",
  "schedule": {
    "interval": 0,
    "anchor_date": "2023-01-31T18:09:36.895Z",
    "timezone": "America/New_York"
  },
  "description": "creating deploymnent using api",
  "parameter_openapi_schema": {},
  "path": "",
  "version": "",
  "entrypoint": "flow.py:greetings",
  "infra_overrides": {}
}
The value assigned to storage_document_id and infrastructure_documnet_id is just a random uuid, since i trying this api with postman i m bit confused on entrypoint too that how to put it in correct way can anyone please help me on this.
n

Nimesh Kumar

02/01/2023, 3:51 AM
Hi Michael, Thank you for the response, I cannot relate the function you referred me to my problem. I am trying to understand the request body for sending the post request on postman so then i can convert it into python