Create Data Table Row
post
/rest/v19/adminCustom{tableName}
This endpoint is used to create a new row for the specified data table.
Request
Path Parameters
Root Schema : rowRequest
Type:
Show Source
object-
DataItems:
string
Title:
Data Table Row Data.This object contains labels and values for each column in the data table.
Response
Supported Media Types
- application/json
400 Response
Bad request. Invalid Payload
404 Response
Requested resource(s) not found
500 Response
Unexpected error
Default Response
The data for the data table row.
Root Schema : rowResponse
Type:
Show Source
object-
_state:
object state
Title:
staterow state -
DataItems:
string
Title:
Data Table Row Data.This object contains labels and values for each column in the data table.
Nested Schema : items
Type:
Show Source
object-
field:
string
Title:
fielderror field -
title:
string
Title:
titleerror title
Examples
The following examples show how to create a new row 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 -H "Authorization: Bearer <token>" - H "Content-type: application/json" https://sitename.oracle.com/rest/v19/datatables/Rack_Domain/fields/DateUpdated
Request Body Sample
{
"StatusID": 20,
"StatusLabel": "INVOICED",
"StatusOSC_t": "ZCA_IN_PROGRESS",
"StatusOSC_l": "WON",
"HistoricalStatus": "ZCA_WIN",
"DMStatus": "WON"
}
Response Body Sample
{
"id": 41365481,
"StatusID": 20,
"StatusLabel": "INVOICED",
"StatusOSC_t": "ZCA_IN_PROGRESS",
"StatusOSC_l": "WON",
"HistoricalStatus": "ZCA_WIN",
"DMStatus": "WON",
"links": [{
"rel": "parent",
"href": "https://sitename.oracle.com/rest/v19/adminCustomStatus"
}, {
"rel": "self",
"href": "https://sitename.oracle.com/rest/v19/adminCustomStatus/41365481"
}
]
}