REST API for Data Sets

The following shows a request to create a data set record.

URL: https://ServerName:Port/siebel/<Version>/data/Automation Data Set/Automation Data Set
HTTP Method: POST
Content type: application/json 
Authorization: Basic

Request body:
{
"Name": "Test_DataSet",
"Status": "Active",
"Description": "DataSet"
}
Response to a successful request:
{
"Id": "88-1WCIA5",
"Name": "Test_DataSet",
"Status": "Active",
"Description": "DataSet"
}

The following shows a request to insert a new field into a data set.

URL: https://ServerName:Port/siebel/<Version>/data/Automation Data Set/Automation Data Set/88-1WCIA5/Automation Data Set Field
HTTP Method: PUT
Content type: application/json 
Authorization: Basic

Request body:
{
"Id": "123",
"Name": "Name",
"Applet Name": "Account List Applet",
"Description": "List Applet Field"
}
Response to a successful request:
{
  "Id": "88-1WCIAF"
}

The following shows a request to insert a new value for a field in a data set.

URL: https://ServerName:Port/siebel/<Version>/data/Automation Data Set/Automation Data Set/88-1WCIA5/Automation Data Set Field/88-1WCIAF/Automation Data Set Values
HTTP Method: PUT
Content type: application/json 
Authorization: Basic

Request body:
{
"Id":"123",
"Sequence":"1", 
"Data Set Field Value": "Value1"
}
Response to a successful request:
{
"Id": "88-1WCIAP"
}
Note: Before deleting any data set using a REST request, make sure to disassociate any test scripts first.