Update one knowledge base

patch

/fscmRestApi/resources/11.13.18.05/spendClassificationKnowledgeBases/{KnowledgeBaseName}

Request

Path Parameters
Header Parameters
  • If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
  • The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
  • Maximum Length: 2000
    Names of the data set used to create the knowledge base.
  • Excluded Words
    Title: Excluded Words
    The Excluded Words resource manages the training exclusions for a knowledge base.
  • Contains one of the following values: true or false. If true, then the knowledge base should be improved. If false, then the knowledge base should not be improved. This attribute does not have a default value.
  • Maximum Length: 2000
    Attributes that are used for phrase based learning instead of keyword learning while creating the knowledge base.
Nested Schema : Excluded Words
Type: array
Title: Excluded Words
The Excluded Words resource manages the training exclusions for a knowledge base.
Show Source
Nested Schema : spendClassificationKnowledgeBases-excludedWords-item-patch-request
Type: object
Show Source
Back to Top

Response

Supported Media Types

Default Response

The following table describes the default response for this task.
Headers
  • If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
  • The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
Body ()
Root Schema : spendClassificationKnowledgeBases-item-response
Type: object
Show Source
Nested Schema : Excluded Words
Type: array
Title: Excluded Words
The Excluded Words resource manages the training exclusions for a knowledge base.
Show Source
Nested Schema : spendClassificationKnowledgeBases-excludedWords-item-response
Type: object
Show Source
Back to Top

Examples

This example describes how to improve an existing knowledgebase by resetting it.

Example cURL Command

Use the following cURL command to submit a request on the REST resource.
curl -u user:password -H "Content-Type: application/vnd.oracle.adf.resourceitem+json" -X PATCH -d 'request payload' https://server/fscmRestApi/resources/11.13.18.05/spendClassificationKnowledgeBases/{KnowledgeBaseName}

Example Request Body

The following example includes the contents of the request body in JSON format.

"{
 ""DataSetNames"":""DEMO-TRAIN-QA"",
 ""ImproveKnowledgeBaseFlag"":true
}"

Example Response Body

The following example includes the contents of the response body in JSON format:

"{
  ""KnowledgeBaseName"" : ""KB111"",
  ""TaxonomyName"" : ""Purchasing taxonomy"",
  ""TaxonomyCode"" : ""ORA_POI_PURCHASING"",
  ""ProcessingStatusCode"" : ""ORA_POI_COMPLETED"",
  ""ProcessingStatus"" : ""Complete"",
  ""DataSetNames"" : ""DEMO-TRAIN-QA"",
  ""ImproveKnowledgeBaseFlag"" : ""true"",
  ""LastUpdatedDate"" : ""2021-05-13T04:12:26+00:00"",
  ""links"" : [ {
 ...
  } ]
}"
Back to Top