Case Status Updates Work in UI but Not via REST API

tstone
Kilo Contributor

Hi there,

 

I can manually change case status in the UI but the same user cannot change status via REST API.

 

Test Results:


1. Update Assigned To: SUCCESS
Payload: {'assigned_to': 'My Username'}
Status Code: 200


2. Update Assignment Group: SUCCESS
Payload: {'assignment_group': 'My Group'}
Status Code: 200


3. Add Work Notes: SUCCESS
Payload: {'work_notes': 'API Test: Adding work notes via REST API'}
Status Code: 200


4. Add Comments: SUCCESS
Payload: {'comments': 'API Test: Adding comments via REST API'}
Status Code: 200


5. Change Status (PATCH): FAILED (State Not Changed)
Payload: {'state': '2'}
Status Code: 200

Error: State remained 'New' despite HTTP 200. Expected '2'


6. Change Status (PUT): FAILED (State Not Changed)
Payload: {'state': '2'}
Status Code: 200

Error: State remained 'New' despite HTTP 200. Expected '2'


7. Status Change 7.1: FAILED (State Not Changed)
Payload: {'state': '10'}
Status Code: 200
Error: State remained 'New' despite HTTP 200. Expected '10'


8. Status Change 7.2: FAILED (State Not Changed)
Payload: {'state': 'Work In Progress'}
Status Code: 200
Error: State remained 'New' despite HTTP 200. Expected 'Work In Progress'


9. Status Change 7.3: FAILED (State Not Changed)
Payload: {'state': 'work_in_progress'}
Status Code: 200
Error: State remained 'New' despite HTTP 200. Expected 'work_in_progress'


10. Combined Update: FAILED (State Not Changed)
Payload: {'state': '2', 'assigned_to': 'My Username', 'assignment_group': 'My Group', 'work_notes': 'API Test: Combined update attempt'}
Status Code: 200
Error: State remained 'New' despite HTTP 200. Expected '2'

 

I am able to change assigned_to, assignment_group, add work_notes, and add comments. But until now, I haven't been able to change the case status. API returns HTTP 200 for status updates but field doesn't change.


Why can the same user change case status in UI but state field is ignored via REST API? As far as I can tell from UI, during "setting to progress", the case is assigned to the current user.

 

Thanks for your suggestions!

1 REPLY 1

tstone
Kilo Contributor

Any suggestions on how to find out what's going on/why cases can't be set to "work in progress"? Appreciate all ideas.