cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements
Walkthrough Wednesdays
534
Views
3
Helpful
2
Replies
Absaar Javed
Enthusiast

Error Changing agent state from READY to NOT_READY via API

Hello'

I have been trying to change the agent state from READY to NOT_READY using following API:

URL : http://<host>/finesse/api/User/<AgentId>

Content Type: Application/XML

HTTP Request:   

<User>

<state>NOT_READY</state>

<reasonCodeId>25</reasonCodeId>

</User>

HTTP Method: PUT


Then I get the following error:

<ApiErrors>

  <ApiError>

    <ErrorType>Parameter Missing</ErrorType>

    <ErrorData>finesse.api.reasoncode.require_reasoncode</ErrorData>

    <ErrorMessage>The state change requires a valid reason code.</ErrorMessage>

  </ApiError>

</ApiErrors>


Now the problem here is that I have added this reason code into finesse via finesse Administrator Desktop.But I am still getting the same error suggesting that the reason code is not available.

Screen shot of finesse desktop is attached.


1 ACCEPTED SOLUTION

Accepted Solutions
dlender
Frequent Contributor

You should be  using the reasoncode ID rather than the reasoncode itself

Get the reasoncode ID from  url:http://<FQDN>/finesse/api/User/<id>/ReasonCodes?category=NOT_READY

View solution in original post

2 REPLIES 2
dlender
Frequent Contributor

You should be  using the reasoncode ID rather than the reasoncode itself

Get the reasoncode ID from  url:http://<FQDN>/finesse/api/User/<id>/ReasonCodes?category=NOT_READY

View solution in original post

Absaar Javed
Enthusiast

Thanx alot David, it works perfectly now.

Content for Community-Ad

This widget could not be displayed.