Create Supplemental Table
post
/rest/api/v1.3/folders/{folderName}/suppData
Use this endpoint to create a new supplemental table by providing its schema.
Request
Path Parameters
-
folderName: string
Folder Name
Request Body
Root Schema : create supplemental table Request
Type:
object
Title:
Show Source
create supplemental table Request
-
primaryKeys(optional):
array primaryKeys
Array of primary keys corresponding to the supplemental table.
-
records(optional):
array records
Array of columns corresponding to the supplemental table.
-
table(optional):
object table
Supplemental table name
Nested Schema : primaryKeys
Type:
array
Array of primary keys corresponding to the supplemental table.
Show Source
Nested Schema : records
Type:
array
Array of columns corresponding to the supplemental table.
Show Source
Nested Schema : table
Type:
object
Supplemental table name
Show Source
-
objectName(optional):
string
Name of the supplemental table
Nested Schema : items
Type:
Show Source
object
-
dataExtractionKey(optional):
boolean
Data Extraction Key column of the supplemental table
-
fieldName(optional):
string
The supplemental table Field Name
-
fieldType(optional):
string
The supplemental table Field Type
Response
Supported Media Types
- application/json
Default Response
true/false indicating success or failure.
Root Schema : create supplemental table Response
Type:
boolean
Title:
create supplemental table Response
true/false indicating success or failure.
Examples
The following example shows how to create a new supplemental table.
FIELDS | DESCRIPTION |
---|---|
Authorization | <AUTH_TOKEN> |
Content-Type | application/json |
Sample Request:
/rest/api/v1.3/folders/<folderName>/suppData
Sample Request Body:
{ "table" : {"objectName": "WS_REST_SUPPDATA_NEW"}, "fields" : [ { "fieldName":"edu", "fieldType" : "STR500", "dataExtractionKey" : false }, { "fieldName":"uni", "fieldType" : "STR500", "dataExtractionKey" : false }, { "fieldName":"grade", "fieldType" : "STR500", "dataExtractionKey" : false } ], "primaryKeys" : ["edu"] }
Sample Response: Failure
{ "type": "", "title": "Invalid request parameters", "errorCode": "INVALID_PARAMETER", "detail": "Create Table Without PK is not supported.Please include Primary Key.", "errorDetails": [] }