(→Accept) |
(→Accept) |
||
Line 8: | Line 8: | ||
POST on '''/me/interactions/{id}''' | POST on '''/me/interactions/{id}''' | ||
− | <nowiki>{ | + | <nowiki> |
− | "operationName":"Accept", | + | { |
− | "nickname":agent-nickname-to-be-displayed-in-chat | + | "operationName":"Accept", |
+ | "nickname":agent-nickname-to-be-displayed-in-chat | ||
} | } | ||
</nowiki> | </nowiki> | ||
Line 18: | Line 19: | ||
''Success'' | ''Success'' | ||
− | <nowiki>{ | + | <nowiki> |
− | "statusCode": 0 | + | { |
− | }</nowiki> | + | "statusCode": 0 |
+ | } | ||
+ | </nowiki> | ||
''Failure'' | ''Failure'' | ||
− | <nowiki>{ | + | <nowiki> |
− | "statusCode": an integer value above 0, | + | { |
− | "statusMessage":details | + | "statusCode": an integer value above 0, |
− | }</nowiki> | + | "statusMessage":details |
+ | } | ||
+ | </nowiki> | ||
For details on the <tt>statusCode</tt> value, please refer to the [[ReturnValues#All_Methods|All Methods]] sub-section of the Return Values section. | For details on the <tt>statusCode</tt> value, please refer to the [[ReturnValues#All_Methods|All Methods]] sub-section of the Return Values section. | ||
[[Category:V:HTCC:8.5.2]] | [[Category:V:HTCC:8.5.2]] |
Revision as of 16:24, March 23, 2014
Accept
This operation can be performed after a new interaction notification arrives. Accepting an interaction allows agents to start working on it.
After successfully executing this operation, a cometD notification will come with complete chat history up until this point.
HTTP Request
POST on /me/interactions/{id}
{ "operationName":"Accept", "nickname":agent-nickname-to-be-displayed-in-chat }
HTTP Response
Success
{ "statusCode": 0 }
Failure
{ "statusCode": an integer value above 0, "statusMessage":details }
For details on the statusCode value, please refer to the All Methods sub-section of the Return Values section.
Comments or questions about this documentation? Contact us for support!