Loading data from any system
API sources are used to represent various systems contributing data to your DCN. Examples of systems from which you may be sourcing data into an API source include DMPs, CDPs, CRMs, and private databases.
$ optable-cli source create api my-example-source
On success, the CLI displays a description of the newly created API source in JSON. You can then push data into the source referring to its displayed
idas described below.
You can specify a data expiry time when creating the API source with the
--expiryoption. The default is that loaded data should never expire. Otherwise the option accepts a positive integer suffixed with either
hto indicate the amount of time elapsed since the last record update (in seconds, minutes, or hours, respectively) until loaded data is automatically purged.
You can also update the
--expiryvalue by updating your API source with the
optable-cli source update apicommand.
$ optable-cli source list | jq 'select(.kind == "SOURCE_KIND_API") | .name'