Skip to content

Get Details of a Case

Request

Overview

The Get Details of a Case API retrieves details of a case in a release.

Prerequisites

  • A Guided Help search session for the provided Casebase Release must be in progress before this API is invoked.
Security
oAuthUser(Required scopes:
https://api.egain.cloud/auth/knowledge.portalmgr.read
)
or oAuthOnBehalfOfUser(Required scopes:
https://api.egain.cloud/auth/knowledge.portalmgr.onbehalfof.read
)
or oAuthCustomer(Required scopes:
https://api.egain.cloud/auth/knowledge.portalmgr.read
)
or oAuthOnBehalfOfCustomer(Required scopes:
https://api.egain.cloud/auth/knowledge.portalmgr.onbehalfof.read
)
or oAuthAnonymousCustomer(Required scopes:
https://api.egain.cloud/auth/knowledge.portalmgr.read
)
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
casebaseReleaseIDstring^[1-9]\d{14}$required

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

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

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

Example:1000001085
Query
$langstring(languageCode)

The language used for a resource. Resources available in different languages may differ from each other. If $lang is not passed, then the portal's default language is used.

Enum:"en-US""fr-FR""en-GB""es-ES""it-IT""nl-NL""da-DA""sv-SE""pt-PT""fi-FI"
Example:$lang=en-US
caseAdditionalAttributesArray of strings

Additional case attributes to be fetched.

Items Enum:"questionDetail""actions""all"
Example:caseAdditionalAttributes=all
Examples:
Single
An additional attributes to be returned.
caseAdditionalAttributes=["actions"]
Multiple
Additional attributes to be returned.
caseAdditionalAttributes=["questionDetail","actions"]
All
All additional attributes to be returned.
caseAdditionalAttributes=["all"]
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
curl -i -X GET \
  'https://api.egain.cloud/knowledge/portalmgr/v4/portals/PROD-1000/gh/casebasereleases/202201000000002/cases/1000001085?%24lang=en-US&caseAdditionalAttributes=actions' \
  -H 'Accept-Language: en-US' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -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'

Responses

Success

Bodyapplication/json
idstring, [ 10 .. 15 ] characters^[1-9]\d*$

The numerical ID of the case.

Example:"100000000001035"
shortNamestring, [ 1 .. 255 ] characters^[\w\W]+$

short name of the case.

titlestring, [ 1 .. 255 ] characters^[\w\W]+$

title of the case

commentsstring, [ 0 .. 255 ] characters^[\w\W]*$

comments on the case

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

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

releaseIdstring, = 15 characters^[1-9]\d*$

The numerical ID of the Casebase Release in which case in created

Example:"100000000001035"
clusterIdstring, [ 10 .. 15 ] characters^[1-9]\d*$

ID of the cluster in which case is created

Example:"100000000001035"
createdDatestring, (DateAndTime), [ 20 .. 25 ] characters^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$

The date on which the Case was created.

createdByobject(createdBy)
modifiedByobject(modifiedBy)
modifiedDatestring, (DateAndTime), [ 20 .. 25 ] characters^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$

The date on which the Case was last modified.

isVisibleboolean

Flag indicating if the case is visible

rejectCountinteger, (int64), [ 0 .. 9999999999 ]

number of times case was rejected.

acceptCountinteger, (int64), [ 0 .. 9999999999 ]

number of times case was accepted.

actionArray of objects(Action)

actions in the case

metadataArray of objects(Metadata)

Metadata of the case

thresholdValueinteger, (int32), [ 0 .. 100 ]

Threshold value of the case

thresholdTypestring

Threshold type indicating if thresholdValue is default or custom.

Enum:"Default""Custom"
thresholdValueFromClusternumber, (double), [ 0 .. 100 ]

Threshold value of the cluster in which case is created

caseTypestring

Type of the case. Control or Content type

Enum:"Control""Content"
questionDetailArray of objects(Question Detail)

Questions in the case

Response
{ "shortName": "Case55", "title": "Becoming a Member", "acceptCount": 0, "rejectCount": 0, "comments": "", "profileId": "1", "releaseId": "202201000000002", "clusterId": "1000000402", "isVisible": true, "thresholdValue": 50, "thresholdType": "Default", "caseType": "Content", "createdBy": { "id": "1013", "firstName": "John", "lastName": "Doe" }, "createdDate": "2022-06-26T11:11:00Z", "modifiedBy": { "id": "1013", "firstName": "John", "lastName": "Doe" }, "modifiedDate": "2022-06-26T11:11:00Z", "thresholdValueFromCluster": 90, "metadata": [ { … } ], "link": { "rel": "self", "href": "/knowledge/portalmgr/v4/portals/PROD-1000/gh/casebasereleases/202201000000002/cases/1000001085?%24lang=en-US" }, "id": "1000001085" }