Publish Flow
POST {{base-path}}/sites/{{site-id}}/flows?flowType=tfl
https://help.tableau.com/current/api/restapi/en-us/REST/restapirefpublishing.htm#publish_flow
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
uploadSessionId | string | If you are calling this method to commit a file that was uploaded in parts, this value contains the upload session LUID that was generated by a call to Initiate File Upload. If this value is not included, the server assumes that the body of the request contains the file to be published. | |
flowType | string | tfl or tflx to indicate whether you have uploaded a flow file (tfl) or a packaged flow file (tflx). This value is only necessary and required if you upload a file in multiple parts. In the Publish Flow call after completing file upload, specify the file type. | |
overwrite | null | true to overwrite a data source that has the same name, or false to fail if the specified data source already exists. The default is false. If overwrite-flag is set to true but the data source doesn't already exist, the operation succeeds. | |
You can include both the overwrite and append parameters in a request, but they cannot both be true. |
Request Body
[{"name"=>"request_payload", "value"=>"<tsRequest>\n\t<flow name=\"flow-name\" >\n\t\t<project id=\"{{project-id}}\" />\n\t</flow>\n\t<connections>\n\t\t<connection id=\"abc\"\n\t\t\tpassword=\"connection-password\"\n\t\t\tusername=\"connection username\"\n\t\t\tembed=\"embed-flag\">\n\t\t<connectionCredentials\n\t\t\tname=\"connection-username\"\n\t\t\tpassword=\"connection-password\"\n\t\t\tembed=\"embed-flag\" />\n\t\t</connection>\n\t\t</connections>\n</tsRequest>", "datatype"=>"string"}, {"name"=>"tableau_flow", "value"=>nil, "datatype"=>"null"}]