Adding descriptions to several columns
Create or update descriptions for several dataset columns in one operation.Before you begin
- Make sure that the user that issues API calls has the Dataset - Edit permission. The ID of this permission is
DATASET_UPDATE
. - Make sure that the dataset is already created and that the user that issues API calls knows the ID of this dataset.
About this task
This operation allows you to create or update several descriptions on several fields of a dataset in a single API call. For a hierarchical dataset, the field is represented by a path, otherwise the path is the field name.
method: POST
endpoint: https://api.<env>.cloud.talend.com/datasets/{datasetId}/columns
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer <your_personal_access_token>"
}
payload: [{
"path": "<path>",
"description": "<description>"
}]
Procedure
-
Select POST from the Method list and in the field aside, enter the endpoint to be used:
https://api.<env>.cloud.talend.com/datasets/{datasetId}/columns
. -
Replace the placeholder with the correct values:
Parameter Value datasetId
Dataset for which you want to update a description. You can find the dataset ID with a GET
request onhttps://api.<env>.cloud.talend.com/datasets
. It is also available in Talend Cloud applications that use datasets, in the URL of the dataset’s overview page, after/dataset/
. -
Click Add header twice to add two rows and enter the following
key:value
pairs:Content-Type
:application/json
Authorization
:Bearer <your_personal_access_token>
-
In the BODY area, enter description to be updated. For example:
[ { "path": "Makes.make_id", "description": "identifier of the object" }, { "path": "Makes.make_display", "description": "label to display" } ]
-
Send the request.
Results
The description are updated and the status code 204 is returned.
Previous section: Adding a description to a specific column