Get a keyterms file for a key term prompts test result using advanced query
/api/boss/data/objects/ora/cxSalesCommon/keyterms/v1/keyterms/{keyterms_id}/prompts/{keyterms-prompts_id}/testResults/{keyterms-prompts-testResults_id}/keytermFile/{keyterms-prompts-testResults-keytermFile_id}/$query
Request
-
keyterms-prompts-testResults-keytermFile_id(required): string
This path parameter maps to the following field defined in the Key Terms/prompts/testResults/keytermFile REST resource:
- id
-
keyterms-prompts-testResults_id(required): string
This path parameter maps to the following field defined in the Key Terms/prompts/testResults REST resource:
- id
-
keyterms-prompts_id(required): string
This path parameter maps to the following field defined in the Key Terms/prompts REST resource:
- id
-
keyterms_id(required): string
This path parameter maps to the following field defined in the Key Terms REST resource:
- code
-
$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-
accessors: object
accessors
Maps accessor names to query objects specific to corresponding accessors. Query object for each accessor supports query capabilities similar to the base.
-
fields: array
fields
Restricts the resource fields. Only the specified fields and mandatory system fields are returned.
-
subTypes: object
subTypes
Maps discriminator values (as defined in subtypes) to query objects specific to corresponding subtypes. Subtype-specific query objects support a subset(fields,accessors,filter) of the query capabilities when compared to the base.
objectarrayobjectResponse
Default Response
-
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 File-
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-
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 Parameters- self
-
Parameters:
- keyterms-prompts-testResults-keytermFile_id:
$request.path.keyterms-prompts-testResults-keytermFile_id - keyterms-prompts-testResults_id:
$request.path.keyterms-prompts-testResults_id - keyterms-prompts_id:
$request.path.keyterms-prompts_id - keyterms_id:
$request.path.keyterms_id
- keyterms-prompts-testResults-keytermFile_id:
Examples
The following example shows how to advanced query all keyterm files for a key term prompts test result by submitting a post request on the REST resource using cURL.
cURL Command
curl -X POST --location
'https://<servername>/api/boss/data/objects/ora/cxSalesCommon/keyterms/v1/$en/keyterms/{keyterms_id}/prompts/{keyterms-prompts_id}/testResults/{keyterms-prompts-testResults_id}/keytermFile/{keyterms-prompts-testResults-keytermFile_id}/$query'
\ --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.
{
"fields": [
"id",
"parentType",
"documentIdentifier",
"createdBy",
"timeCreated",
"updatedBy",
"timeUpdated"
],
"accessors": {
"attachment": {
"accessors": {
"document": {
"fields": [
"id",
"title",
"description",
"fileName",
"mediaType"
]
}
},
"fields": [
"id",
"category",
"timeUpdated"
]
}
}
}
Example of Response Body
The following shows an example of the response body in JSON format.
{
"items": [
{
"id": "300100626058686",
"parentType": "OKC_PROMPT_TEST_RESULT",
"documentIdentifier": "00020000000EACED00057708000110F09F368DBC0000000EACED00057708000110F09F368DBB",
"createdBy": "CONMGR",
"timeCreated": "2025-01-15T10:11:06.458829Z",
"updatedBy": "CONMGR",
"timeUpdated": "2025-01-15T10:11:06.458829Z",
"$id": "300100626058686",
"$context": {
"etag": "1",
"links": {
"$self": {
"href": "https://cptbbybqy-test.fusionapps.ocs.oc-test.com:443/api/boss/data/objects/ora/cxSalesCommon/keyterms/v1/$en/keyterms/ATS_JLSA_Renewal_Cap_Percentage/prompts/300100626058682/testResults/300100626058685/keytermFile/300100626058686"
}
}
},
"attachment": {
"id": "300100626058684",
"category": "MISC",
"timeUpdated": "2025-01-15T10:07:20.361289Z",
"$id": "300100626058684",
"document": {
"id": "300100626058683",
"title": "Sample Oracle Contract-1-1",
"description": "Sample Oracle Contract-1-1.pdf",
"fileName": "Sample Oracle Contract_1_1.pdf",
"mediaType": "application/pdf",
"$id": "300100626058683"
}
}
}
],
"hasMore": false
}