Querying for a Single Account Record Using Uniformresponse
You can query for a single Siebel CRM Business Component by sending a HTTPS GET request to the resource’s URI.
The following request queries for a single Account record from
the Siebel CRM Server by using the uniformresponse parameter:
URI:
GET https://<host_name>:<port_number>/siebel/v1.0/data/Account/Account/88-26CND?fields=Name,Location,Id&childlinks=Contact,Position,Organization&uniformresponse=y
HTTP Method: GET
Content Type: application/json
Authorization: Basic
Request body: None
Here are the response details for a successful request:
HTTP Code: 200
Content Type:
- Response body:
{ "items": [ { "Name": "3Com", "Id": "88-26CND", "Location": "Headquarters", "Link": [ { "rel": "self", "href": "https://<host_name>:<port_number>/siebel/v1.0/data/Account/Account/88-26CND", "name": "Account" }, { "rel": "canonical", "href": "https://<host_name>:<port_number>/siebel/v1.0/data/Account/Account/88-26CND", "name": "Account" }, { "rel": "child", "href": "https://<host_name>:<port_number>/siebel/v1.0/data/Account/Account/88-26CND/Contact", "name": "Contact" }, { "rel": "child", "href": "https://<host_name>:<port_number>/siebel/v1.0/data/Account/Account/88-26CND/Position", "name": "Position" }, ] } ] "Link": [ { "rel": "self", "href": "https://<host_name>:<port_number>/siebel/v1.0/data/Account/Account?uniformresponse=y&childlinks=Contact,Position,Organization&fields=Name,Location,Id", "name": "Account" } ] }
Note: The response in this example is in an array even though the array has single element. This is because the request contains the uniformresponse parameter.