Removing Empty Fields Using the ExcludeEmptyFieldsInResponse Parameter

You can use the ExcludeEmptyFieldsInResponse = true parameter to remove empty fields in REST API responses and to reduce the response body size. By default, if you do not use this parameter, both empty and non-empty fields are returned in the REST response body. This applies to data, service, workspace, and workflow REST APIs. For more information on the values you can use with the ExcludeEmptyFieldsInResponse parameter, see About URI Parameters.

In the following example the excludeEmptyFieldsInResponse parameter is set to true, and the response body returns no fields with empty values:

  • URI:

    http://ServerName:port/siebel/v1.0/data/Account/Account?excludeEmptyFieldsInResponse=true

  • HTTP Method: POST

  • Content-Type: application/xml

  • Authorization: Basic

  • Request body: None