Attachments
The attachment resource is used to view, create, and update attachments of a promotion program. An attachment includes additional information about a promotion program.
Resource Plural Label |
Attachments |
Resource Name |
Attachment |
Get All Attachments
Request: GET
URI: /crmRestApi/resources/11.13.18.05/__ORACO__PromotionProgram_c/{id}/child/Attachment
Request Path Parameters
This table summarizes the request path parameters:
Name | Type | Description |
---|---|---|
Id | integer | The unique identifier of the promotion program. |
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:
|
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__PromotionProgram_c/{id}/child/Attachment
Request Path Parameters
This table summarizes the request path parameters:
Name | Type | Description |
---|---|---|
Id | integer | The unique identifier of the promotion program. |
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__PromotionProgram_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 promotion program. |
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__PromotionProgram_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 promotion program. |
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__PromotionProgram_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 promotion program. |
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__PromotionProgram_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 promotion program. |
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
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 when the attachment was last updated. UI Label: Last Update Date |
LastUpdatedBy |
string |
The user who last updated the attachment. 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. |
UploadedText |
string |
The text of the attachment. |
UploadedFileContentType |
string |
The content type of the attachment. |
UploadedFileLength |
integer |
The length of the attachment file. |
UploadedFileName |
string |
The name of the attachment file. |
ContentRepositoryFileShared |
boolean |
Indicates whether the attachment is shared. If True then the attachment is shared. UI Label: Shared |
Title |
string |
The title of the attachment. 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. UI Label: Error Status Code |
ErrorStatusMessage |
string |
The error message, if any, for the attachment. UI Label: Error Status Message |
CreatedBy |
string |
The user who created the attachment. |
CreationDate |
datetime |
The date when the attachment record was created. |
FileContents |
attachment |
The contents of the attachment. UI Label: File Contents |
ExpirationDate |
datetime |
The expiration date of the contents in the attachment. UI Label: Expiration Date |