Skip to main content
POST
Create data type

Authorizations

Authorization
string
header
required

Use a valid Bearer token to authenticate.

Body

application/json
name
string
required

Name of data type. Example: OutletDetail

fields
object[]
required

List of fields to data type . Example: { 'id': 'dataId', 'title': 'Data ID', 'type': 'text', 'optionData': [], 'required': true, 'primaryKey': true }

limitUser
boolean

Setting to limit data source usage by users. Default: false

commonData
boolean

Settings to define the data source to be unique by hub or shared across all hubs. This setting is not changeable after creation. Default: false

provider
enum<string>
default:internal

The data source provider type. Default: internal Available values: internal, external-api (external GET API)

Available options:
internal,
external-api
providerConfig
object

For internal provider

Response

Success

status
boolean

Status of response.

message
string

Message of API response.

data_type
object

Detail of object data type.