Call operation
Call an operation of a custom connector. Checks required parameters, encodes path and query values, signs the request and returns status, headers and the parsed body, or saves a file.
Command in the Custom Connectors toolkit · id ooa.connector/call_operation · 11 inputs (2 required), 4 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Connector | String | Yes | Connector name (the file connectors/<name>.connector.json in the workspace). | |
| Operation | String | Yes | Operation id, as shown by List operations. | |
| Parameters | Dictionary | No | Path, query, header and cookie parameters by name. | |
| Body | Any | No | Request body: a dictionary or list for JSON, fields for forms (file fields take a file path), or a file path for binary uploads. | |
| Credential | Credential | No | Secret for the API: API key, password, bearer token, OAuth client secret or AWS secret key. May also be a JSON object with the fields of 'auth'. | |
| Sign-in settings | Dictionary | No | Non-secret auth settings: scheme, username, client_id, scope, access_key_id, session_token, region, service. | |
| Output file | File | No | Save the response body to this file (streamed; for downloads and binary responses). | |
| Endpoint address | String | No | Server to call instead of the connector's server. | |
| Headers | Dictionary | No | Extra request headers. | |
| Timeout (seconds) | Number | No | 60 | Response timeout. |
| Fail on error | Boolean | No | true | Raise CONNECTOR.HTTP_<status> on 4xx and 5xx responses. |
Outputs
| Output | Type | What it is |
|---|---|---|
| status | Number | HTTP status code. |
| headers | Dictionary | Response headers. |
| body | Any | Response body: parsed JSON, or text; empty when saved to a file. |
| file | String | Path of the saved response when output_file is set. |