Rest API GET operation for object field values
search cancel

Rest API GET operation for object field values

book

Article ID: 377282

calendar_today

Updated On:

Products

CA Service Management - Service Desk Manager

Issue/Introduction

When use Service Desk Rest API GET operation to retrieve certain object record with this URI

http://host:port_number/caisd-rest/obj/record-id

it does not return any fields of that record. What I need to do that certain fields of that record will be returned?

Environment

CA Service Desk 17.3 and higher

Resolution

You would need to add the field name list in the header "X-Obj-Attrs", separated by comma.

For example with URI 

http://host:port_number/caisd-rest/iss_prp/record-id

if you would like to return the issue property name and its value, you should add

label,  name

in "X-Obj-Attrs" within header