HomeGuidesRecipesAPI ReferencePython SDK
Alation Help Center
Guides
These docs are for v2023.3.5. Click to read the latest docs for v2025.1.


## Overview

In this guide, we will walk you through on how to update the descriptions on BI Folders. These steps will work for any BI object (Report, Data Source, BI Server, and etc.). Let's assume we want to update the description of a folder that's on our Tableau BI server. This guide will work for any BI source that's been cataloged by Alation.

### APIs being used

  • ο»Ώ[BI Source (GBMv2) Overview](πŸ”—ο»Ώ)

  • ο»Ώ[Custom Field](πŸ”—ο»Ώ)

  • ο»Ώ[Custom Field Values Overview](πŸ”—ο»Ώ)

  • ο»Ώ[APIAccessToken](πŸ”—ο»Ώ) <- This guide assumes you have a valid access token

### Permissions Needed

You will need a **Server Admin** role to do these steps. You can check the [APIs by Roles](πŸ”—ο»Ώ) for more details.

### Completed Code

Below is the completed python code for this guide.

πŸ¦‰
Updating Custom Metadata/Descriptions for BI Objects
Open Recipe
ο»Ώ

## 1. Identify which object(s) we want to update

### Get BI Server ID

We can use [GET a list of BI Servers](πŸ”—ο»Ώ) to identify the BI Server ID that Alation uses. This can also be found in the URL.

640
ο»Ώ
ο»Ώ

### Get the BI Folders

We can use the [GET a list of folders from a specified BI Server](πŸ”—ο»Ώ) on this BI Server. Now a folder in Alation can represent projects in Tableau, Work Spaces in PowerBI, and etc. Browse your BI Server and Alation to get a feel for how it is organized in Alation.

ο»Ώ

## 2. Get the Custom Field IDs

We need to get the custom field ID for our "Description", singular name, custom field. The "Description" field is also a "Rich Text" type. If you wanted to update more custom fields on a BI source, then get those additional IDs here. [GET multiple Custom Fields](πŸ”—ο»Ώ)

In our URL parameters, we will specify the field type as "RICH_TEXT".

ο»Ώ

## 3. Update the description

Alright! We have all of the needed ids. Let's go to update the Description.

**NOTE:** When updating Rich Text Fields, make sure you review [HTML Sanitization](πŸ”—ο»Ώ) for which HTML values are allowed. iframes are always a good work around when needed ;)

### Before API Update

Here's our "Folder" right before the API call.

426
ο»Ώ

### Update Call

ο»Ώ

### After API Call

And now we can see the updated description!

832
ο»Ώ

And as always....

ο»Ώ
(Script tags will be stripped)

ο»Ώ