Create a keyterm prompt attachment
/api/boss/data/objects/ora/cxSalesCommon/keyterms/v1/keyterms/{keyterms_id}/prompts/{keyterms-prompts_id}/$attachments
Request
-
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
- application/json
-
allOf
oraCxSalesCommonKeyterms.KeytermFileAttachment_item-fields
-
object
Prompt Test File
Title:
Prompt Test File
Prompt test file is a file that's used for testing prompts and extracting key terms from contract documents.
-
allOf
oraCommonAppsInfraAttachments.Attachment_item-fields
-
object
Attachment
Title:
Attachment
The attachments such as documents, media, or a web URL that are added to a specific record.
object
object
-
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 By
The user who created the record. -
id: string
Title:
Attachment ID
The unique identifier of the attachment. -
timeCreated: string
Title:
Created On
The date and time when the record was created. -
timeUpdated: string
Title:
Last Updated Date
The date and time when the record was last updated. -
updatedBy: string
Title:
Last Updated By
The user who last updated the record.
object
Prompt Test File
object
-
createdBy: string
Title:
Created By
The user who created the record. -
id: string
Title:
Attachment ID
The unique identifier of the attachment. -
timeCreated: string
Title:
Created On
The date and time when the record was created. -
timeUpdated: string
Title:
Last Updated Date
The date and time when the record was last updated. -
updatedBy: string
Title:
Last Updated By
The user who last updated the record.
object
Attachment
object
-
allOf
oraCommonAppsInfraAttachments.Document_item-fields
-
object
__busObj_context
-
object
Document Accessor
Title:
Document Accessor
The 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:
Document
Directives for customers uploading chunked files. -
contentEndpoint: string
Title:
Server Endpoint
Endpoint for the content server. -
createdBy: string
Title:
Created By
The user who created the record. -
description: string
Title:
Description
The description of the document. -
downloadParameters: object
Download Parameters
Title:
Download Parameters
Used to get the parameters required to download a file type document. -
fileName: string
Title:
File Name
The file name of a file type document. -
id: string
Title:
Document ID
The unique identifier of the document. -
managedEndpointKey: string
Title:
Endpoint Key
The endpoint key from topology manager. -
managedPath: string
Title:
Path
The relative path of the managed URL. -
managedUrl: string
Title:
Managed URL
The URL that's a combination of the managed endpoint and path. -
mediaType: string
Title:
Media Type
The media type of a file type document. -
name: string
Title:
Name
The name that identifies a file type of the stored document. -
securityGroup: string
Title:
Security Group
Used to get the group where the file type documents are organized. -
size: string
Title:
Size
The size of a file type document. -
timeCreated: string
Title:
Created On
The date and time when the record was created. -
timeUpdated: string
Title:
Last Updated Date
The date and time when the record was last updated. -
title: string
Title:
Title
The title of the document. -
type: string
Title:
Type
The type of document. -
updatedBy: string
Title:
Last Updated By
The user who last updated the record. -
uploadParameters: object
Upload Parameters
Title:
Upload Parameters
Used to get the parameters required to upload a file type document. -
url: string
Title:
URL
The URL of a web page type document. -
version: string
Title:
Version
The version of a file type document.
object
Document Accessor
-
allOf
oraCommonAppsInfraAttachments.Document_item-fields
-
object
__busObj_context
-
object
Latest Document
Title:
Latest Document
The latest version of the attached document.
-
string(big-integer)
-
string
Title:
Document
The required number of chunked files to be uploaded to the content server.
-
string(big-integer)
-
string
Title:
Document
The required size of each chunked file to be uploaded to the content server.
object
Latest Document
object
Document
object
Download Parameters
object
Upload Parameters
-
string(big-integer)
Read Only:
true
-
string
Title:
Document ID
The unique identifier of the document.
Response
Default Response
Examples
The following example shows how to create a keyterm prompt attachment 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/{keyterms_id}/prompts/{keyterms-prompts_id}/$attachments'
\ --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.
{ "category": "MISC", "document": { "id": 300100626372917 } }
Example of Response
The following shows an example of the response body in JSON format.
201 Created