0

Is there a way to close the serviceNow change request using restApi ?

Have tried it using API Patch

Patch sn_chg_rest/change/{sys_id}

Body: { “state”: “Closed”, “close_code”: “” “close_notes”: “

It simply returns the list of fields as response. Status of the change is not changed.

Expecting the status of the change to be closed

ramya
  • 1
  • 2

1 Answers1

0

Field names are case sensitive. The correct field name is "state", not "State".

giles3
  • 465
  • 2
  • 9
  • Thanks @giles3, must be a typo while typing it here. Have edited it. Please take a look. It’s not changing the state when given with state, close_code, close_notes – ramya Mar 27 '23 at 10:38