Create or Update Data Table Column

post

/rest/v16/datatables/{tableName}/fields

This endpoint is used to create or update a data table column.

Request

Supported Media Types
Path Parameters
Body ()
Root Schema : dataTableField-createRequestCollection
Type: object
Show Source
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 or updated column details
Body ()
Root Schema : dataTableField-collection
Type: object
Show Source
Nested Schema : Columns list
Type: array
Title: Columns list
List of columns
Show Source
Nested Schema : dataTableField
Type: object
Data table column model
Show Source
Nested Schema : relationship-response
Type: object
Show Source
Nested Schema : validation-response
Type: object
Show Source
Nested Schema : referenceField-response
Type: object
Show Source
Nested Schema : referenceTable-response
Type: object
Show Source
Back to Top

Examples

The following examples show how to create or update a data table column for the specified data table for the specified 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"
https://sitename.oracle.com/rest/v16/datatables/Rack_Domain/fields

Request Body Sample

{
  "name": "Type",
  "description": "This field identifies the component type.",
  "index": true,
  "key": false,
  "order": 2
}
    

Response Body Sample

{
  "id": 41361422,
  "dateModified": "10/17/2019 10:30 AM",
  "links": [{
      "rel": "parent",
      "href": "https://sitename.oracle.com/rest/v16/datatables/Rack_Domain/fields"
    }, {
      "rel": "self",
      "href": "https://sitename.oracle.com/rest/v16/datatables/Rack_Domain/fields/Type"
    }
  ],
  "name": "Type",
  "description": "This field identifies the component type.",
  "dateAdded": "10/08/2019 12:48 PM",
  "type": "String",
  "order": 2,
  "index": true,
  "key": false
}
    
Back to Top