Synchronize Data Table Columns

post

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

This endpoint is used to create, update, or delete data table columns.

Request

Supported Media Types
Path Parameters
Body ()
Root Schema : dataTableField-synchronizeRequestCollection
Type: object
Show Source
Nested Schema : Column List
Type: array
Title: Column List
List of columns to be synchronized.
Show Source
Nested Schema : dataTableField-synchronizeRequest
data table field Create request model
Match All
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

Synchronized 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 example shows how to synchronize data table columns 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/Rack_Domain/fields/actions/synchronize

Request Body Sample

{
  "documents": {
    "items": [{
        "name": "DateUpdated",
        "type": "String",
        "_sync_action": "create",
        "_proxy_id": "1"
      }, {
        "name": "Height",
        "description": "This field identifies the height of the component.",
        "_sync_action": "update",
        "_proxy_id": "2"
      }, {
        "name": "RelationshipColumn",
        "_sync_action": "delete",
        "_proxy_id": "3"
      }
    ]
  }
}

Response Body Sample

{
  "documents": {
    "items": [{
        "id": 41367525,
        "dateModified": "10/23/2019 10:32 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/DateUpdated"
          }
        ],
        "name": "DateUpdated",
        "dateAdded": "10/23/2019 10:32 AM",
        "type": "String",
        "order": 12,
        "index": false,
        "key": false,
        "_proxy_id": "1"
      }, {
        "id": 41366842,
        "dateModified": "10/23/2019 10:32 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/Height"
          }
        ],
        "name": "Height",
        "description": "This field identifies the height of the component.",
        "dateAdded": "10/21/2019 11:15 AM",
        "type": "Integer",
        "order": 5,
        "index": false,
        "key": false,
        "_proxy_id": "2"
      }
    ]
  }
}
Back to Top