Skip to main content

diagrid call bindings post

Send POST request to an output binding

Description

Send a POST request to an output binding using the Bindings API. Supported operations differ by component target.

diagrid call bindings post [flags]

Examples


# Make a POST request to an output binding, performing the create operation and providing data and metadata
diagrid call bindings post -—component my-component --app-id my-appid --operation create --data '{"orderId": 1}' --metadata key=1

Options

  -a, --app-id string          [Required]: Caller App ID
-c, --component string [Required]: Component name for target output binding
--operation string [Required]: The operation to perform. Operation support varies by component target.
-p, --project string Name of existing project
-d, --data string The JSON serialized data string
--metadata stringArray Payload metadata (e.g. --metadata key1=redis-key-1 )
-o, --output string Output format, supported [table, yaml, json] (default "table")
--verbose Include verbose output such as curl command and response body
-h, --help help for post

SEE ALSO