Attachments

The attachment resource is used to view, create, and update attachments of a credit line. An attachment includes additional information about a credit line.

Resource Plural Label

Attachments

Resource Name

Attachment

Get All Attachments

Request: GET

URI: /crmRestApi/resources/11.13.18.05/__ORACO__CreditLineDSD_c/{id}/child/Attachment

Request Path Parameters

This table summarizes the request path parameters:

Name Type Description
Id integer The unique identifier of the Credit Line.

Request Query Parameters

Use these finder parameters to query the resource:

Finder Name Description
Primary Key

Finds an attachment with the specified primary key.

Finder Variables:

  • AttachedDocumentId: The unique identifier of the attachment.
    • Type: integer

Request Body

There are no elements in the request body for this task.

Response Body

This table summarizes the supported response body content types:

Media Type

application/vnd.oracle.adf.resourcecollection+json

Upload an Attachment

Request: POST

URI: /crmRestApi/resources/11.13.18.05/__ORACO__CreditLineDSD_c/{id}/child/Attachment

Request Path Parameters

This table summarizes the request path parameters:

Name Type Description

Id

integer

The unique identifier of the Credit Line.

Request Body

This table summarizes the supported request body content types:

Media Type

application/vnd.oracle.adf.resourcecollection+json

Response Body

This table summarizes the supported response body content types:

Media Type

application/vnd.oracle.adf.resourcecollection+json

Get an Attachment

Request: GET

URI: /crmRestApi/resources/11.13.18.05/__ORACO__CreditLineDSD_c/{Id}/child/Attachment/{AttachedDocumentId}

Request Path Parameters

This table summarizes the request path parameters:

Name Type Description

Id

integer

The unique identifier of the Credit Line.

AttachedDocumentId

integer

The unique identifier of the attachment.

Request Body

There are no elements in the request body for this task.

Response Body

This table summarizes the supported response body content types:

Media Type

application/vnd.oracle.adf.resourcecollection+json

Replace an Attachment

Request: PATCH

URI: /crmRestApi/resources/11.13.18.05/__ORACO__CreditLineDSD_c/{Id}/child/Attachment/{AttachedDocumentId}

Request Path Parameters

This table summarizes the request path parameters:

Name Type Description

Id

integer

The unique identifier of the Credit Line.

AttachedDocumentId

integer

The unique identifier of the attachment.

Request Body

This table summarizes the request body content types:

Media Type

application/vnd.oracle.adf.resourcecollection+json

Response Body

This table summarizes the supported response body content types:

Media Type

application/vnd.oracle.adf.resourcecollection+json

Update an Attachment

Request: PUT

URI: /crmRestApi/resources/11.13.18.05/__ORACO__CreditLineDSD_c/{Id}/child/Attachment/{AttachedDocumentId}

Request Path Parameters

This table summarizes the request path parameters:

Name Type Description

Id

integer

The unique identifier of the Credit Line.

AttachedDocumentId

integer

The unique identifier of the attachment.

Request Body

This table summarizes the request body content types:

Media Type

application/vnd.oracle.adf.resourcecollection+json

Response Body

This table summarizes the supported response body content types:

Media Type

application/vnd.oracle.adf.resourcecollection+json

Remove an Attachment

Request: DELETE

URI: /crmRestApi/resources/11.13.18.05/__ORACO__CreditLineDSD_c/{Id}/child/Attachment/{AttachedDocumentId}

Request Path Parameters

This table summarizes the request path parameters:

Name Type Description

Id

integer

The unique identifier of the Credit Line.

AttachedDocumentId

integer

The unique identifier of the attachment.

Request Body

There are no elements in the request body for this task.

Response Body

There are no elements in the response body for this task.

List of Values

There are no LOVs for this resource.

Resource Attributes

This table lists all the attributes of the resource.

Attribute Name Attribute Type Description

LastUpdateDate

datetime

The date and time when the record was last updated.

UI Label:

Last Update Date

LastUpdatedBy

string

The user who last updated the record. This is defaulted by the system.

Properties:

The maximum length is 255.

UI Label:

Last Updated By

DatatypeCode

string

The value that indicates the data type code of the attachment.

Properties:

The maximum length is 30.

UI Label:

Type

FileName

string

The file name of the attachment.

Properties:

The maximum length is 2048.

UI Label:

File Name

DmFolderPath

string

The folder path of the attachment.

Properties:

The maximum length is 1000.

Url

string

The URL of the attachment.

Properties:

The maximum length is 4000.

CategoryName

string

The category of the attachment.

Properties:

The maximum length is 30.

UI Label:

Category

UserName

string

The login associated with the attachment.

Properties:

The maximum length is 255.

UI Label:

Category Name

Uri

string

The URI of the attachment.

Properties:

The maximum length is 4000.

UI Label:

Uri

FileUrl

string

The URL of the attachment file.

Properties:

The maximum length is 0.

UploadedText

string

The text uploaded in the attachment.

Properties:

The maximum length is 0.

UploadedFileContentType

string

The content type of the attachment.

Properties:

The maximum length is 0.

UploadedFileLength

integer

The length of the attachment file.

UploadedFileName

string

The name of the attachment file.

Properties:

The maximum length is 0.

ContentRepositoryFileShared

boolean

Indicates whether the attachment is shared. If True then the attachment is shared.

Properties:

The maximum length is 0.

UI Label:

Shared

Title

string

The title of the attachment.

Properties:

The maximum length is 0.

UI Label:

Title

Description

string

The description of the attachment.

Properties:

The maximum length is 255.

UI Label:

Description

ErrorStatusCode

string

The error code, if any, for the attachment.

Properties:

The maximum length is 0.

UI Label:

Error Status Code

ErrorStatusMessage

string

The error message, if any, for the attachment.

Properties:

The maximum length is 0.

UI Label:

Error Status Message

CreatedBy

string

The user who created the record.

CreationDate

datetime

The date and time when the record was created.

FileContents

attachment

The contents of the attachment file.

UI Label:

File Contents

ExpirationDate

datetime

The expiration date of the contents in the attachment.

UI Label:

Expiration Date