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
Body ()
Request Body
Root Schema : create supplemental table Request
Type: object
Title: create supplemental table Request
Show Source
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
Nested Schema : items
Type: object
Show Source
Back to Top

Response

Supported Media Types

Default Response

true/false indicating success or failure.
Body ()
Root Schema : create supplemental table Response
Type: boolean
Title: create supplemental table Response
true/false indicating success or failure.
Back to Top

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": []
      } 
	
Back to Top