Create Data Table

post

/rest/v16/datatables

This endpoint is used to create a new data table.

Request

Supported Media Types
Body ()
Root Schema : dataTable-createRequest
Type: object
Show Source
Nested Schema : dataTableField-createRequestCollection
Type: object
Show Source
Nested Schema : folder
Type: object
Show Source
  • Title: Folder Variable Name
    The variable name of the parent data table folder. NOTE: If this value is not specified, the new data table will be created in the '_default' folder.
Nested Schema : Column List
Type: array
Title: Column List
List of columns to be created or updated
Show Source
Nested Schema : dataTableField-createRequest
Type: object
Data table column create request model
Show Source
Nested Schema : relationship-request
Type: object
Show Source
Nested Schema : validation-request
Type: object
Show Source
  • Title: Attribute Hierarchy
    Attribute hierarchy
  • Title: Validation Type
    Allowed Values: [ "Config", "Commerce" ]
    Type of the validation
Nested Schema : referenceField-request
Type: object
Show Source
  • Title: Referencing Column
    the name of the referencing column.
Nested Schema : referenceTable-request
Type: object
Show Source
  • Title: Reference Table Name
    Name of the referencing table
Back to Top

Response

Supported Media Types

Default Response

Created data table details
Body ()
Root Schema : dataTable-createResponse
Type: object
Show Source
Nested Schema : folder
Type: object
Show Source
Back to Top

Examples

The following example shows how to create a data table by submitting a POST request to the REST resource using cURL. For more information about cURL, see Use cURL.

curl -X POST -i -H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQg" -H "Content-type: application/json" -H "Accept: application/json"
https://sitename.oracle.com/rest/v16/datatables

Request Body Sample

{
  "name": "ServerComponents",
  "description": "This table lists server components for the Vision Servers configuration.",
  "folder": {
    "variableName": "servers"
  },
  "isLive": false
}

Response Body Sample

{
  "id": 41361249,
  "dateModified": "10/08/2019 9:13 AM",
  "links": [{
      "rel": "parent",
      "href": "https://sitename.oracle.com/rest/v16/datatables"
    }, {
      "rel": "self",
      "href": "https://sitename.oracle.com/rest/v16/datatables/ServerComponents"
    }
  ],
  "name": "ServerComponents",
  "description": "This table lists server components for the Vision Servers configuration.",
  "hasUndeployedChanges": true,
  "deployedDate": "",
  "dateCreated": "10/08/2019 9:13 AM",
  "folder": {
    "name": "Servers",
    "variableName": "servers",
    "links": [{
        "rel": "related",
        "href": "https://sitename.oracle.com/rest/v16/dataTableFolders/servers"
      }
    ]
  },
  "isLive": false
}
Back to Top