Synchronize Data Table Rows

post

/rest/v16/adminCustom{tableName}/actions/synchronize

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

Request

Supported Media Types
Path Parameters
Body ()
Root Schema : schema
Type: object
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : syncRowRequest
Type: object
Show Source
  • Title: Synchronization Action
    The synchronization action for the row (create, update, or delete)
  • Title: Data Table Row Data.
    This object contains labels and values for each column in the data table.
Back to Top

Response

Supported Media Types

400 Response

Bad request. Invalid Payload

404 Response

Requested resource(s) not found

500 Response

Unexpected error

Default Response

Body ()
Root Schema : rowCollection
Type: object
Show Source
  • Title: Count
    Specifies that the total count of records should be included in the response when doing pagination.
  • Title: Has More
    Returns true if more resources are available on the server than the subset returned in current page.
  • items
  • Title: Limit
    The requested page size, which limits the number of elements the collection should max return.
  • Title: Offset
    The offset of the page. By default, offset is 0, which means first page will be returned.
  • Title: Total Results
    Capture the total count of the resource instances, which not only includes the instances in the current range, but all instances on the server that satisfy the request.
Nested Schema : items
Type: array
Show Source
Nested Schema : rowRequest
Type: object
Show Source
  • Title: Data Table Row Data.
    This object contains labels and values for each column in the data table.
Back to Top

Examples

The following examples show how to synchronize data table rows 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/adminCustomStatus/actions/synchronize

Request Body Sample

{
  "documents": {
    "items": [{
        "StatusID": 20,
        "StatusLabel": "DELIVERED",
        "StatusOSC_t": "ZCA_COMPLETE",
        "StatusOSC_l": "WON",
        "HistoricalStatus": "ZCA_WIN",
        "DMStatus": "WON",
        "_sync_action": "update"
      }, {
        "StatusID": 21,
        "StatusLabel": "QUOTED",
        "StatusOSC_t": "ZCA_IN_PROGRESS",
        "StatusOSC_l": "OPEN",
        "HistoricalStatus": "ZCA_IN_PROGRESS",
        "DMStatus": "",
        "_sync_action": "create"
      }, {
        "StatusID": 15,
        "_sync_action": "delete"
      }
    ]
  }
}
    

Response Body Sample

{
  "documents": {
    "items": [{
        "id": 41365481,
        "StatusID": 20,
        "StatusLabel": "DELIVERED",
        "StatusOSC_t": "ZCA_COMPLETE",
        "StatusOSC_l": "WON",
        "HistoricalStatus": "ZCA_WIN",
        "DMStatus": "WON",
        "links": [{
            "rel": "parent",
            "href": "https://sitename.oracle.com/rest/v16/adminCustomStatus"
          }, {
            "rel": "self",
            "href": "https://sitename.oracle.com/rest/v16/adminCustomStatus/41365481"
          }
        ],
      }, {
        "id": 41366930,
        "StatusID": 21,
        "StatusLabel": "QUOTED",
        "StatusOSC_t": "ZCA_IN_PROGRESS",
        "StatusOSC_l": "OPEN",
        "HistoricalStatus": "ZCA_IN_PROGRESS",
        "links": [{
            "rel": "parent",
            "href": "https://sitename.oracle.com/rest/v16/adminCustomStatus"
          }, {
            "rel": "self",
            "href": "https://sitename.oracle.com/rest/v16/adminCustomStatus/41366930"
          }
        ],
      }
    ],
    "links": [{
        "rel": "canonical",
        "href": "https://sitename.oracle.com/rest/v16/adminCustomStatus"
      }, {
        "rel": "next",
        "href": "https://sitename.oracle.com/rest/v16/adminCustomStatus?offset=1000&limit=1000&totalResults=false"
      }, {
        "rel": "self",
        "href": "https://sitename.oracle.com/rest/v16/adminCustomStatus?offset=0&limit=1000&totalResults=false"
      }
    ]
  }
}
    
Back to Top