Create keyterms in bulk
/api/boss/data/objects/ora/cxSalesCommon/keyterms/v1/keyterms/$bulk
Request
-
$effectiveDate: string(date)
The effective date value in ISO 8601 date format 'YYYY-MM-DD'. This date is required by business logic to search for effective-dated business objects.
- application/json
-
object
oraCxSalesCommonKeyterms.Keyterm_item-fields
-
object
Key Term
Title:
Key TermKey term is the metadata present in the contract documents. The key terms to be extracted for each contract type is defined in the application with the corresponding prompts to be used for extraction.
object-
activeFlag: boolean
Title:
StatusDefault Value:true -
code: string
Title:
Code -
createdBy: string
Title:
Created ByRead Only:true -
group:
group
-
name: string
Title:
Name -
outputType:
outputType
-
timeCreated: string
(date-time)
Title:
Created OnRead Only:true -
timeUpdated: string
(date-time)
Title:
Last Updated DateRead Only:true -
updatedBy: string
Title:
Last Updated ByRead Only:true
objectKey Termobject-
$context: object
$context
-
$operation: string
Allowed Values:
[ "CREATE", "UPDATE", "DELETE", "MERGE" ]
object-
$sourceLang: string
Read Only:
true -
createdBy: string
Read Only:
true -
description: string
Read Only:
true -
displaySequence: string
(big-integer)
Read Only:
true -
enabledFlag: boolean
Read Only:
true -
endDateActive: string
(date)
Read Only:
true -
lookupCategoryId: string
(big-integer)
Read Only:
true -
lookupCode: string
Read Only:
true -
lookupType: string
Read Only:
true -
meaning: string
Read Only:
true -
startDateActive: string
(date)
Read Only:
true -
tag: string
Read Only:
true -
timeCreated: string
(date-time)
Read Only:
true -
timeUpdated: string
(date-time)
Read Only:
true -
updatedBy: string
Read Only:
true
object-
createdBy: string
Title:
Created ByThe user who created the record. -
description: string
Title:
Lookup Code DescriptionThe translated description of the Lookup Code. -
displaySequence: string
Title:
Display SequenceThe display sequence of the Lookup Code. -
enabledFlag: boolean
Title:
Lookup Code EnabledThe enabled flag of the Lookup Code. -
endDateActive: string
Title:
End Date ActiveThe active end date of the Lookup Code. -
lookupCategoryId: string
Title:
Lookup CategoryThe lookup category of the Lookup Code. -
lookupCode: string
Title:
Lookup Code IDThe unique identifier of the Lookup Code. -
lookupType: string
Title:
Lookup Type IDThe unique identifier of the Lookup Type. -
meaning: string
Title:
Lookup Code MeaningThe translated meaning of the Lookup Code. -
startDateActive: string
Title:
Start Date ActiveThe active start date of the Lookup Code. -
tag: string
Title:
Lookup TagThe tag value of the Lookup Code. -
timeCreated: string
Title:
Created OnThe date and time when the record was created. -
timeUpdated: string
Title:
Last Updated DateThe date and time when the record was last updated. -
updatedBy: string
Title:
Last Updated ByThe user who last updated the record.
objectGroup-
object
oraCxSalesCommonKeyterms.KeytermPrompt_item-fields
-
object
Key Term Prompt
Title:
Key Term PromptKey term prompt is the question that's used in a large language model to extract a certain key term from contract documents.
object-
createdBy: string
Title:
Created ByRead Only:true -
description: string
Title:
Description -
id: string
(big-integer)
Read Only:
true -
keyterm:
keyterm
-
latestAdditionalInstructions: string
-
name: string
Title:
Name -
status:
status
-
text: string
Title:
Prompt -
timeCreated: string
(date-time)
Title:
Created OnRead Only:true -
timeUpdated: string
(date-time)
Title:
Last Updated DateRead Only:true -
updatedBy: string
Title:
Last Updated ByRead Only:true
objectKey Term Promptobject-
$context: object
$context
-
$operation: string
Allowed Values:
[ "CREATE", "UPDATE", "DELETE", "MERGE" ]
object-
allOf
oraCxSalesCommonKeyterms.KeytermFileAttachment_item-fields
-
object
Prompt Test File
Title:
Prompt Test FilePrompt test file is a file that's used for testing prompts and extracting key terms from contract documents.
objectobject-
createdBy: string
Read Only:
true -
document:
document
-
id: string
(big-integer)
Read Only:
true -
timeCreated: string
(date-time)
Read Only:
true -
timeUpdated: string
(date-time)
Read Only:
true -
updatedBy: string
Read Only:
true
object-
createdBy: string
Title:
Created ByThe user who created the record. -
id: string
Title:
Attachment IDThe unique identifier of the attachment. -
timeCreated: string
Title:
Created OnThe date and time when the record was created. -
timeUpdated: string
Title:
Last Updated DateThe date and time when the record was last updated. -
updatedBy: string
Title:
Last Updated ByThe user who last updated the record.
objectPrompt Test Fileobject-
$context: object
$context
-
$operation: string
Allowed Values:
[ "CREATE", "UPDATE", "DELETE", "MERGE" ]
-
allOf
oraCommonAppsInfraAttachments.Document_item-fields
-
object
__busObj_context
-
object
Document Accessor
Title:
Document AccessorThe name of the accessor used to retrieve the document.
object-
$sourceLang: string
Read Only:
true -
chunkingDirectives: object
chunkingDirectives
-
contentEndpoint: string
Read Only:
true -
createdBy: string
Read Only:
true -
description: string
-
downloadParameters: object
downloadParameters
-
fileName: string
-
id: string
(big-integer)
Read Only:
true -
latestDocument:
latestDocument
-
managedEndpointKey: string
-
managedPath: string
-
managedUrl: string
Read Only:
true -
mediaType: string
-
name: string
-
securityGroup: string
Read Only:
true -
size: string
(big-integer)
-
timeCreated: string
(date-time)
Read Only:
true -
timeUpdated: string
(date-time)
Read Only:
true -
title: string
-
type:
type
-
updatedBy: string
Read Only:
true -
uploadParameters: object
uploadParameters
-
url: string
-
version: string
object-
chunkingDirectives: object
Document
Title:
DocumentDirectives for customers uploading chunked files. -
contentEndpoint: string
Title:
Server EndpointEndpoint for the content server. -
createdBy: string
Title:
Created ByThe user who created the record. -
description: string
Title:
DescriptionThe description of the document. -
downloadParameters: object
Download Parameters
Title:
Download ParametersUsed to get the parameters required to download a file type document. -
fileName: string
Title:
File NameThe file name of a file type document. -
id: string
Title:
Document IDThe unique identifier of the document. -
managedEndpointKey: string
Title:
Endpoint KeyThe endpoint key from topology manager. -
managedPath: string
Title:
PathThe relative path of the managed URL. -
managedUrl: string
Title:
Managed URLThe URL that's a combination of the managed endpoint and path. -
mediaType: string
Title:
Media TypeThe media type of a file type document. -
name: string
Title:
NameThe name that identifies a file type of the stored document. -
securityGroup: string
Title:
Security GroupUsed to get the group where the file type documents are organized. -
size: string
Title:
SizeThe size of a file type document. -
timeCreated: string
Title:
Created OnThe date and time when the record was created. -
timeUpdated: string
Title:
Last Updated DateThe date and time when the record was last updated. -
title: string
Title:
TitleThe title of the document. -
type: string
Title:
TypeThe type of document. -
updatedBy: string
Title:
Last Updated ByThe user who last updated the record. -
uploadParameters: object
Upload Parameters
Title:
Upload ParametersUsed to get the parameters required to upload a file type document. -
url: string
Title:
URLThe URL of a web page type document. -
version: string
Title:
VersionThe version of a file type document.
objectDocument Accessor-
allOf
oraCommonAppsInfraAttachments.Document_item-fields
-
object
__busObj_context
-
object
Latest Document
Title:
Latest DocumentThe latest version of the attached document.
-
string(big-integer)
-
string
Title:
DocumentThe required number of chunked files to be uploaded to the content server.
-
string(big-integer)
-
string
Title:
DocumentThe required size of each chunked file to be uploaded to the content server.
objectLatest DocumentobjectDocumentobjectDownload ParametersobjectUpload Parametersobjectobject-
string(big-integer)
Read Only:
true -
string
Title:
Attachment IDThe unique identifier of the attachment.
-
object
oraCxSalesCommonKeyterms.PromptTestResult_item-fields
-
object
Prompt Test Result
Title:
Prompt Test ResultPrompt test result includes information about the response provided by the large language model for a specific prompt.
object-
additionalInstructions: string
Title:
Additional Instruction -
createdBy: string
Title:
Created ByRead Only:true -
id: string
(big-integer)
Read Only:
true -
prompt:
prompt
-
promptText: string
Title:
Prompt -
resultDate: string
(date-time)
Title:
Date -
submitDate: string
(date-time)
Title:
Upload Date -
testOutput: string
Title:
Response -
timeCreated: string
(date-time)
Title:
Created OnRead Only:true -
timeUpdated: string
(date-time)
Title:
Last Updated DateRead Only:true -
updatedBy: string
Title:
Last Updated ByRead Only:true
objectPrompt Test Resultobject-
$context: object
$context
-
$operation: string
Allowed Values:
[ "CREATE", "UPDATE", "DELETE", "MERGE" ]
objectobjectobject-
object
oraCxSalesCommonKeyterms.PromptTestCitation_item-fields
-
object
Citation
Title:
CitationCitation is the part of the source document that's referenced by the large language model to get a response.
object-
citation: string
-
createdBy: string
Title:
Created ByRead Only:true -
id: string
(big-integer)
Read Only:
true -
sequenceNumber: string
-
testResult:
testResult
-
timeCreated: string
(date-time)
Title:
Created OnRead Only:true -
timeUpdated: string
(date-time)
Title:
Last Updated DateRead Only:true -
updatedBy: string
Title:
Last Updated ByRead Only:true
objectCitationobject-
$context: object
$context
-
$operation: string
Allowed Values:
[ "CREATE", "UPDATE", "DELETE", "MERGE" ]
objectobjectobject-
object
oraCxSalesCommonKeyterms.KeytermFile_item-fields
-
object
Key Term File
Title:
Key Term FileKey term file is the contract document that's used in prompt testing.
object-
attachment:
attachment
-
createdBy: string
Title:
Created ByRead Only:true -
documentIdentifier: string
-
id: string
(big-integer)
Read Only:
true -
parentType:
parentType
-
timeCreated: string
(date-time)
Title:
Created OnRead Only:true -
timeUpdated: string
(date-time)
Title:
Last Updated DateRead Only:true -
updatedBy: string
Title:
Last Updated ByRead Only:true
objectKey Term Fileobject-
$context: object
$context
-
$operation: string
Allowed Values:
[ "CREATE", "UPDATE", "DELETE", "MERGE" ]
objectobjectobjectResponse
Default Response
Examples
The following example shows how to create keyterms in bulk by submitting a post request on the REST resource using cURL.
cURL Command
curl -X POST --location
'https://servername.fa.us2.oraclecloud.com/api/boss/data/objects/ora/cxSalesCommon/keyterms/v1/$en/keyterms/$bulk'
\ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer
<token>' \ --D @request.json
Example of Request Body
The following shows an example of the request body in JSON format.
{
"items": [
{
"$operation": "CREATE",
"code": "Recovery Point Objective",
"name": "Recovery Point Objective(RPO)",
"outputType": "ORA_OKC_TEXT",
"activeFlag": true,
"group": {
"lookupCode": "ATS_OKC_Operations",
"lookupType": "ORA_OKC_KEY_TERM_GROUP"
},
"prompts": {
"items": [
{
"$operation": "CREATE",
"name": "RPO",
"description": "Recovery Point Objective Prompt",
"text": "What is the Recovery Point Objective?",
"status": "ORA_OKC_ACTIVE"
}
]
}
},
{
"$operation": "CREATE",
"code": "Payment Terms",
"name": "Payment Terms",
"outputType": "ORA_OKC_TEXT",
"activeFlag": true,
"group": {
"lookupCode": "ATS_OKC_Payment",
"lookupType": "ORA_OKC_KEY_TERM_GROUP"
},
"prompts": {
"items": [
{
"$operation": "CREATE",
"name": "Payment terms",
"description": "This is Prompt for Payment Terms",
"text": "What are the payment terms?",
"status": "ORA_OKC_ACTIVE"
}
]
}
}
]
}
Example of Response Body
The following shows an example of the response body in JSON format.
{
"items": [
{
"$statusCode": 201,
"$id": "Recovery+Point+Objective",
"$context": {
"etag": "1",
"links": {
"$self": {
"href": "https://servername.fa.us2.oraclecloud.com/api/boss/data/objects/ora/cxSalesCommon/keyterms/v1/keyterms/Recovery%2BPoint%2BObjective"
}
}
}
},
{
"$statusCode": 201,
"$id": "Payment+Terms",
"$context": {
"etag": "1",
"links": {
"$self": {
"href": "https://servername.fa.us2.oraclecloud.com/api/boss/data/objects/ora/cxSalesCommon/keyterms/v1/keyterms/Payment%2BTerms"
}
}
}
}
]
}