Create a new supplemental table
Use this interface to create a new supplemental table by providing its schema.
Service URL:
/rest/api/v1.3/folders/{folderName}/suppData
Request Method:
POST
Request Header:
Authorization=<AUTH_TOKEN>
Content-Type=application/json
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"]
}
Response if successful:
true
Sample Response if failed:
{
"type": "",
"title": "Invalid request parameters",
"errorCode": "INVALID_PARAMETER",
"detail": "Create Table Without PK is not supported. Please include Primary Key.",
"errorDetails": []
}