Change CARTO Table Privacy

This example illustrates how to change the privacy of a CARTO table

Note: You'll need CARTO Account credentials to reproduce this example.


In [1]:
from cartoframes.auth import set_default_credentials

set_default_credentials('creds.json')

In [2]:
from cartoframes import update_privacy_table, describe_table

update_privacy_table('my_table', 'private')

describe_table('my_table')['privacy']


Success! Table updated correctly
Out[2]:
'PRIVATE'

In [3]:
update_privacy_table('my_table', 'public')

describe_table('my_table')['privacy']


Success! Table updated correctly
Out[3]:
'PUBLIC'