In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
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