When creating a new datasource, the payload includes dynamic keys whose structure is determined by the data type specified by dataTypeId. To understand which fields are required and their respective types, you must first retrieve the schema of the data type from the endpoint GET /data-type/. The response from this endpoint defines the additional dynamic keys needed in the payload beyond the standard fields such as dataId, dataTypeId, and hubId.
For example, if the dataTypeId refers to an outlet or store, the /data-type/ endpoint might return a schema that specifies keys like outletName, outletHours, outletType, etc. These fields and their types (string, integer, boolean, etc.) must be included in the request payload when creating the datasource.
Use a valid Bearer token to authenticate.
The identifier of fields from data type.
Example: Outlet
The identifier of data type.
Use GET /data-types API to get the list of Data Type IDs.
Example: 63db2fb476bc679c540369c4
Fundamental entity within an organization, serving as the central point for managing various operational components. Use GET /hubs endpoint to get the list of Hub IDs. Example: 634e98498ce07d29474a7e29
The dynamic field, outlet name. Use GET /data-types API to get detail fields of data source.
Example: Cabang Jakarta Pusat
The dynamic field, outlet hours. Use GET /data-types API to get detail fields of data source.
Example: 12
The dynamic field, outlet type. Use GET /data-types API to get detail fields of data source.
Example: minimarket
The dynamic field, outlet open. Use GET /data-types API to get detail fields of data source.
Example: 09:00
The dynamic field, outlet closed. Use GET /data-types API to get detail fields of data source.
Example: 17:00
The dynamic field, outlet contract expired. Use GET /data-types API to get detail fields of data source.
Example: 2023-02-02
The dynamic field, outlet open in weekend. Use GET /data-types API to get detail fields of data source.
Example: true
The dynamic field, outlet geolocation. Use GET /data-types API to get detail fields of data source.
Example: -6.171702325136309,106.81775093078615