Skip to main content

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​

InputTypeRequiredDefaultWhat it is
ConnectorStringYesConnector name (the file connectors/<name>.connector.json in the workspace).
OperationStringYesOperation id, as shown by List operations.
ParametersDictionaryNoPath, query, header and cookie parameters by name.
BodyAnyNoRequest body: a dictionary or list for JSON, fields for forms (file fields take a file path), or a file path for binary uploads.
CredentialCredentialNoSecret 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 settingsDictionaryNoNon-secret auth settings: scheme, username, client_id, scope, access_key_id, session_token, region, service.
Output fileFileNoSave the response body to this file (streamed; for downloads and binary responses).
Endpoint addressStringNoServer to call instead of the connector's server.
HeadersDictionaryNoExtra request headers.
Timeout (seconds)NumberNo60Response timeout.
Fail on errorBooleanNotrueRaise CONNECTOR.HTTP_<status> on 4xx and 5xx responses.

Outputs​

OutputTypeWhat it is
statusNumberHTTP status code.
headersDictionaryResponse headers.
bodyAnyResponse body: parsed JSON, or text; empty when saved to a file.
fileStringPath of the saved response when output_file is set.