Skip to content

Accept Solution

Request

Overview

The Accept Solution API can be used to accept and add positive score to a solution of a Guided Help case.

Prerequisites

  • A Guided Help search session must be started before invoking this API.
Security
oAuthUser(Required scopes:
https://api.egain.cloud/auth/knowledge.portalmgr.manage
)
or oAuthOnBehalfOfUser(Required scopes:
https://api.egain.cloud/auth/knowledge.portalmgr.onbehalfof.manage
)
or oAuthCustomer(Required scopes:
https://api.egain.cloud/auth/knowledge.portalmgr.manage
)
or oAuthOnBehalfOfCustomer(Required scopes:
https://api.egain.cloud/auth/knowledge.portalmgr.onbehalfof.manage
)
or oAuthAnonymousCustomer(Required scopes:
https://api.egain.cloud/auth/knowledge.portalmgr.manage
)
Path
portalIDstring, [ 7 .. 20 ] characters^[a-zA-Z0-9]{2,4}-\d{4,15}$required

The ID of the portal being accessed.

A portal ID is composed of a 2-4 letter prefix, followed by a dash and 4-15 digits.

Example:PROD-1000
caseIDstring, [ 10 .. 15 ] characters^[1-9]\d*$required

The numerical ID of the Case for which details is to be fetched.

Example:1000001085
Headers
x-egain-activity-idstring, [ 4 .. 9 ] characters^[0-9]{4,9}$

A unique numeric interaction identifier from eGain.

Example:59237
x-ext-integration-idstring, <= 40 characters^[\w\W]+$

The unique numeric identifier for a tenant, used in self-service functionality as well as third-party integrations.

Note: The x-ext-integration-id and x-ext-interaction-id headers must always be provided together and cannot be supplied independently.

The x-egain-activity-id may be provided on its own, or it may be provided along with both x-ext-integration-id and x-ext-interaction-id.

Examples:
uuid
3155180e-0c13-43e9-9c38-e9045bcbf176
hex
00Dbn00000IxGnx
x-ext-interaction-idstring, <= 40 characters^[\w\W]+$

A unique interaction identifier from other CRM applications.

Note: The x-ext-integration-id and x-ext-interaction-id headers must always be provided together and cannot be supplied independently.

The x-egain-activity-id may be provided on its own, or it may be provided along with both x-ext-integration-id and x-ext-interaction-id.

Examples:
uuid
3155180e-0c13-43e9-9c38-e9045bcbf176
hex
00Dbn00000IxGnx
Accept-Languagestring(Language)required

The Language locale accepted by the client (used for locale specific fields in resource representation and in error responses).

Enum:"en-US""en-GB""es-ES""fr-FR""it-IT""de-DE""nl-NL""pt-BR""pt-PT""da-DK"
Example:en-US
Bodyapplication/jsonrequired
idstring, = 15 characters(CasebaseReleaseId)^[1-9]\d*$required

The numerical ID of the Casebase Release.

Example:"409601000000001"
namestring, [ 1 .. 255 ] characters^[\w\W]+$required

name of the case or article

profileIdstring, [ 1 .. 15 ] characters(ProfileId)^1$|^[1-9]\d{9,15}$required

The ID of the guided help profile.
1 will always be the system profile.

curl -i -X POST \
  https://api.egain.cloud/knowledge/portalmgr/v4/portals/PROD-1000/gh/cases/1000001085/accept \
  -H 'Accept-Language: en-US' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -H 'x-egain-activity-id: 59237' \
  -H 'x-ext-integration-id: 3155180e-0c13-43e9-9c38-e9045bcbf176' \
  -H 'x-ext-interaction-id: 3155180e-0c13-43e9-9c38-e9045bcbf176' \
  -d '{
    "id": "120000001201010",
    "name": "HPE Solution Article",
    "profileId": "120450120000001"
  }'

Responses

Rating accepted

Response
No content