Contents:
Create an outputObject.
Version: v4
Required Permissions
NOTE: Each request to the Trifacta® platform must include authentication credentials. See API Authentication.
Request
Request Type: POST
NOTE: If an outputObject already exists for the recipe (flowNodeId) to which you are posting, you must either modify the object instead or delete it before posting your new object.
Endpoint:
/v4/outputObjects
Request Body:
Following creates an outputObject with an embedded writeSettings object to write an Avro file to the specified location:
{ "execution": "photon", "profiler": true, "isAdhoc": true, "writeSettings": { "data": [ { "delim": ",", "path": "hdfs://hadoop:50070/trifacta/queryResults/admin@example.com/POS_999.avro", "action": "create", "format": "avro", "compression": "none", "header": false, "asSingleFile": false, "prefix": null, "suffix": "_increment", "hasQuotes": false, "outputObject": { "id": 4 } } ] }, "flowNode": { "id": 15 } }
For more information on these properties, see API OutputObjects Get v4.
For more information on the writeSettings parameters, see API WriteSettings Get v4.
Response
Response Status Code - Success: 201 - Created
{ "id": 6, "execution": "photon", "profiler": true, "isAdhoc": true, "updatedAt": "2018-11-08T19:08:57.517Z", "createdAt": "2018-11-08T19:08:57.517Z", "creator": { "id": 1 }, "updater": { "id": 1 }, "flowNode": { "id": 15 } }
Reference
For more information on the properties of an outputObject, see API OutputObjects Get v4.
This page has no comments.