Start Free Trial

Alteryx Server Discussions

Find answers, ask questions, and share expertise about Alteryx Server.
SOLVED

Need to send File as Question for Workflow in API Call

Tim_Sullivan
5 - Atom

Looking to run a workflow using the Alteryx Server API. One of the questions for the workflow is a file input. Is this possible? It seems like the questions need to be string fields so I'm not sure if there's a workaround. I'd want something like the below snippet. from the POST "/webapi/user/v2/workflows/{wf_id}/jobs" call

{
  "workerTag": "string",
  "credentialId": "string",
  "questions": [
    {
      "name": "INPUT_FILE",
      "value": "<FILE>"
    }
  ],
  "priority": "Default"
}

 

1 REPLY 1
fmvizcaino
17 - Castor
17 - Castor

Hi @Tim_Sullivan ,

 

You have to use the /user/v2/inputfiles endpoint to send the file and then use the response ID in that json you shared. https://help.alteryx.com/current/en/developer-help/apis/server-api-overview.html#idp473234

 

2025-07-09_11-45-35.png

 

Best,

Fernando