Create a keyterm prompt attachment

post

/api/boss/data/objects/ora/cxSalesCommon/keyterms/v1/keyterms/{keyterms_id}/prompts/{keyterms-prompts_id}/$attachments

Request

Path Parameters
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Match All
Show Source
Nested Schema : oraCxSalesCommonKeyterms.KeytermFileAttachment_post-item
Match All
Show Source
Nested Schema : oraCxSalesCommonKeyterms.KeytermFileAttachment_item
Match All
Prompt test file is a file that's used for testing prompts and extracting key terms from contract documents.
Show Source
Nested Schema : oraCxSalesCommonKeyterms.KeytermFileAttachment_item-fields
Match All
Show Source
Nested Schema : oraCommonAppsInfraAttachments.Attachment_post-item
Match All
Show Source
Nested Schema : oraCommonAppsInfraAttachments.Attachment_item
Match All
The attachments such as documents, media, or a web URL that are added to a specific record.
Show Source
Nested Schema : oraCommonAppsInfraAttachments.Attachment_item-fields
Match All
Show Source
Nested Schema : oraCxSalesCommonKeyterms.KeytermFileAttachment_item-fields-allOf[0]
Type: object
Show Source
Nested Schema : oraCommonAppsInfraAttachments.Attachment_abstract-item
Type: object
Show Source
Nested Schema : oraCxSalesCommonKeyterms.KeytermFileAttachment_item-fields-allOf[2]
Type: object
Show Source
Nested Schema : Prompt Test File
Type: object
Title: Prompt Test File
Prompt test file is a file that's used for testing prompts and extracting key terms from contract documents.
Nested Schema : oraCommonAppsInfraAttachments.Attachment_item-fields-allOf[1]
Type: object
Show Source
Nested Schema : Attachment
Type: object
Title: Attachment
The attachments such as documents, media, or a web URL that are added to a specific record.
Nested Schema : oraCommonAppsInfraAttachments.Attachment_post-item-allOf[1]
Type: object
Show Source
Nested Schema : __busObj_context
Type: object
Show Source
Nested Schema : category
Match All
Attachment Category
Show Source
  • Title: Category
    Default Value: MISC
    Attachment Category
  • Allowed Values: [ "MISC" ]
Nested Schema : document
Match All
The name of the accessor used to retrieve the document.
Show Source
Nested Schema : oraCommonAppsInfraAttachments.Document_item-fields
Match All
Show Source
Nested Schema : oraCommonAppsInfraAttachments.Document_abstract-item
Type: object
Show Source
Nested Schema : oraCommonAppsInfraAttachments.Document_item-fields-allOf[1]
Type: object
Show Source
Nested Schema : Document Accessor
Type: object
Title: Document Accessor
The name of the accessor used to retrieve the document.
Nested Schema : chunkingDirectives
Type: object
Show Source
Nested Schema : downloadParameters
Type: object
Show Source
Nested Schema : latestDocument
Match All
The latest version of the attached document.
Show Source
Nested Schema : type
Match All
Show Source
  • Allowed Values: [ "FILE", "WEB_PAGE", "TMURI", "TEXT" ]
Nested Schema : uploadParameters
Type: object
Show Source
Nested Schema : chunkCount
Match All
The required number of chunked files to be uploaded to the content server.
Show Source
Nested Schema : chunkSize
Match All
The required size of each chunked file to be uploaded to the content server.
Show Source
Nested Schema : prefix
Match All
The prefix used in the file names of the chunked files.
Show Source
  • Title: Document
    The prefix used in the file names of the chunked files.
Nested Schema : version
Match All
Show Source
Nested Schema : XFND_CERT_FP
Match All
Show Source
Nested Schema : XFND_EXPIRES
Match All
Show Source
Nested Schema : XFND_RANDOM
Match All
Show Source
Nested Schema : XFND_SCHEME_ID
Match All
Show Source
Nested Schema : XFND_SIGNATURE
Match All
Show Source
Nested Schema : Latest Document
Type: object
Title: Latest Document
The latest version of the attached document.
Nested Schema : Document
Type: object
Title: Document
Directives for customers uploading chunked files.
Nested Schema : Download Parameters
Type: object
Title: Download Parameters
Used to get the parameters required to download a file type document.
Nested Schema : Upload Parameters
Type: object
Title: Upload Parameters
Used to get the parameters required to upload a file type document.
Nested Schema : $context
Type: object
Show Source
Nested Schema : XFND_CERT_FP
Match All
Show Source
Nested Schema : XFND_EXPIRES
Match All
Show Source
Nested Schema : XFND_RANDOM
Match All
Show Source
Nested Schema : XFND_SCHEME_ID
Match All
Show Source
Nested Schema : XFND_SIGNATURE
Match All
Show Source
Nested Schema : document
Match One Schema
Show Source
Nested Schema : document-oneOf[0]
Type: object
Show Source
Nested Schema : id
Match All
Show Source
Back to Top

Response

Default Response

no content
Back to Top

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
Back to Top