Page tree

 

This is the latest version of the APIs.

Contents:


Create a publications object. 

Version:  v4

 Terms...

Relevant terms:

Term Description
outputObjects An outputObject is a definition of one or more types of outputs and how they are generated. It must be associated with a recipe.

NOTE: An outputObject must be created for a recipe before you can run a job on it. One and only one outputObject can be associated with a recipe.

writeSettings A writeSettings object defines file-based outputs within an outputObject. Settings include path, format, compression, and delimiters.
publications A publications object is used to specify a table-based output and is associated with an outputObject. Settings include the connection to use, path, table type, and write action to apply.

Required Permissions

NOTE: Each request to the Trifacta® platform must include authentication credentials. See API Authentication.

Request

Request Type: POST

Endpoint:

/v4/publications

Request Body:

Following creates a publications object and associates it with outputobject ID=3:

{
    "path": [
        "default"
    ],
    "tableName": "newTable",
    "targetType": "hive",
    "action": "create",
    "outputObject": {
        "id": 3
    },
    "connection": {
        "id": 1
    }
}

Response

Response Status Code - Success:  201 - Created

{
    "path": [
        "default"
    ],
    "id": 3,
    "tableName": "newTable",
    "targetType": "hive",
    "action": "create",
    "updatedAt": "2018-11-08T21:10:35.204Z",
    "createdAt": "2018-11-08T21:10:35.204Z",
    "creator": {
        "id": 1
    },
    "updater": {
        "id": 1
    },
    "outputObject": {
        "id": 3
    },
    "connection": {
        "id": 1
    }
}

Reference

For more information on the properties of a publications object, see API Publications Get v4.

This page has no comments.