rest api for fetching cat_item images

mksharma
Kilo Contributor

I am trying to get images of the item using the rest api /api/sn_sc/servicecatalog/items?sysparm_text=laptop

the image field is missing in the response.

when I try the rest api api/sn_sc/servicecatalog/items/8b6abec14f86c68085b73485f110c7fa   it does not give the field.

even I tried on api/now/table/sc_cat_item/8b6abec14f86c68085b73485f110c7fa

the field is present here but comes blank..

but when I try on the UI I see an image...

what api will help fetch me the image?

5 REPLIES 5

ok. got it.


this is the api... it returns icon and picture both... thanks a lot Geoffrey.


/api/now/attachment?sysparm_query=table_sys_id=8b6abec14f86c68085b73485f110c7fa