Update a Lightbox document
/crmRestApi/resources/11.13.18.05/lightboxDocuments/{LightboxDocumentId}
Request
-
LightboxDocumentId(required): string
The unique identifier of the Lightbox document.
-
Metadata-Context:
If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
-
REST-Framework-Version:
The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
- application/json
object
-
CurrencyCode: string
Title:
Currency
Maximum Length:15
The currency code associated with the lightbox document. A list of valid values are defined in the lookup ZCA_COMMON_CORPORATE_CURRENCY. -
DocumentContents: string
(byte)
The field used to upload and download the document through services.
-
documentDownloadSignals: array
Lightbox Scoring Signals
Title:
Lightbox Scoring Signals
The resource is used to view the signals captured when a document is downloaded. -
documentPages: array
Lightbox Document Pages
Title:
Lightbox Document Pages
The Lightbox document page resource is used to view and update the pages within a Lightbox document. - documentSharedToUserSignals: array Document-shared-with-user Signals
-
DocumentTitle: string
Title:
Document Title
Maximum Length:255
The title of the document. The default value is the file name without the file extension. You can change the title using the update method. - documentUnsharedFromUserSignals: array Document-unshared-with-user Signals
-
documentViewedInLightboxSignals: array
Document-Viewed-Within-Lightbox Signals
Title:
Document-Viewed-Within-Lightbox Signals
The resource is used to view the signals that the document is viewed within Lightbox. -
documentViewedOutsideLightboxSignals: array
Document-viewed-outside-Lightbox Signals
Title:
Document-viewed-outside-Lightbox Signals
The resource is used to view and create the signals captured when document is viewed by a process outside Lightbox. -
KeyPageSequenceNumber: integer
Title:
Thumbnail Page Number
The page number of the thumbnail. -
PublicDocumentFlag: boolean
Title:
Public Document
Maximum Length:1
Default Value:false
Identifies whether a document has been marked as public. - sharedPersons: array Shared-person Instances
array
Lightbox Scoring Signals
array
Lightbox Document Pages
array
Document-Viewed-Within-Lightbox Signals
array
Document-viewed-outside-Lightbox Signals
object
object
-
CurrencyCode: string
Title:
Currency
Maximum Length:15
The currency code associated with the document pages. A list of valid values are defined in the lookup ZCA_COMMON_CORPORATE_CURRENCY. -
pageAddedToCartSignals: array
Page-added-to-cart Signals
Title:
Page-added-to-cart Signals
The resource is used to view the signals captured when pages of a document are added to cart. -
pageDownloadedInCartSignals: array
Downloaded-from-cart Signals
Title:
Downloaded-from-cart Signals
The resource is used to view the signals captured when pages within a cart are downloaded by the user. -
PageTitle: string
Title:
Page Title
Maximum Length:255
The title of the page. -
pageViewedOutsideLightboxSignals: array
Page-viewed-outside-Lightbox Signals
Title:
Page-viewed-outside-Lightbox Signals
The resource is used to view and create signals that a Lightbox document's pages are viewed outside Lightbox. -
UpdateFlag: boolean
Indicates whether the record can be updated. The default value is true.
array
Page-added-to-cart Signals
array
Downloaded-from-cart Signals
array
Page-viewed-outside-Lightbox Signals
object
object
object
object
object
Response
- application/json
Default Response
-
Metadata-Context:
If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
-
REST-Framework-Version:
The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
object
-
CreatedBy: string
Title:
Created By
Read Only:true
Maximum Length:64
The user who created the record. -
CreationDate: string
(date-time)
Title:
Creation Date
Read Only:true
The date when the record was created. -
CurrencyCode: string
Title:
Currency
Maximum Length:15
The currency code associated with the lightbox document. A list of valid values are defined in the lookup ZCA_COMMON_CORPORATE_CURRENCY. -
CurrentRevision: string
Title:
Current Version
Read Only:true
The current version of the document. -
DeleteFlag: boolean
Read Only:
true
Indicates if the current user can delete the document. The default value is true. -
DocumentContents: string
(byte)
The field used to upload and download the document through services.
-
DocumentDownloadedCount: integer
Title:
Downloads
Read Only:true
The number of times the document has been downloaded. -
documentDownloadSignals: array
Lightbox Scoring Signals
Title:
Lightbox Scoring Signals
The resource is used to view the signals captured when a document is downloaded. -
DocumentDownloadURL: string
Title:
Document Download URL
Read Only:true
The URL to the document. -
DocumentOwnerFlag: boolean
Title:
Owner
Read Only:true
Maximum Length:1
Default Value:true
The owner of the document. -
DocumentPageCount: integer
(int32)
Title:
Page Count
Read Only:true
Default Value:0
The page count of the user. -
documentPages: array
Lightbox Document Pages
Title:
Lightbox Document Pages
The Lightbox document page resource is used to view and update the pages within a Lightbox document. - DocumentSharedToEntityCount: integer
- DocumentSharedToUserCount: integer
- documentSharedToUserSignals: array Document-shared-with-user Signals
-
DocumentThumbnailURL: string
Title:
Document Thumbnail URL
Read Only:true
The URL to the document thumbnail. -
DocumentTitle: string
Title:
Document Title
Maximum Length:255
The title of the document. The default value is the file name without the file extension. You can change the title using the update method. -
DocumentType: string
Title:
Type Description
Read Only:true
The description of the document type. -
DocumentTypeCode: string
Title:
File Type
Read Only:true
Maximum Length:30
The type of the Lightbox document, for example, Image, PPTX, PDF, Site, etc. - DocumentUnsharedFromUserCount: integer
- documentUnsharedFromUserSignals: array Document-unshared-with-user Signals
-
DocumentViewedInLightboxCount: integer
Title:
Inside Document Views
Read Only:true
The number of times the document has been viewed in Lightbox. -
documentViewedInLightboxSignals: array
Document-Viewed-Within-Lightbox Signals
Title:
Document-Viewed-Within-Lightbox Signals
The resource is used to view the signals that the document is viewed within Lightbox. -
DocumentViewedOutsideLightboxCount: integer
Title:
Outside Document Views
Read Only:true
The number of times the document has been viewed outside Lightbox. -
documentViewedOutsideLightboxSignals: array
Document-viewed-outside-Lightbox Signals
Title:
Document-viewed-outside-Lightbox Signals
The resource is used to view and create the signals captured when document is viewed by a process outside Lightbox. -
FileName: string
Title:
File Name
Maximum Length:1000
The file name of the document. -
FileSize: integer
(int64)
Title:
File Size
Read Only:true
Default Value:-1
The file size of the document. -
IsDocumentReadyFlag: boolean
Title:
Document Ready
Read Only:true
Indicates if the document is ready for sharing. The default value is true. -
IsDocumentUploadInProgressFlag: boolean
Title:
Document Upload in Progress
Read Only:true
Maximum Length:1
Indicates whether a document upload is in progress. You cannot access certain functions during the upload process. - IsSharedWithCurrentUserFlag: boolean
-
KeyPageSequenceNumber: integer
Title:
Thumbnail Page Number
The page number of the thumbnail. -
LastUpdateDate: string
(date-time)
Title:
Last Updated Date
Read Only:true
The date when the record was last updated. -
LastUpdatedBy: string
Title:
Last Updated By
Read Only:true
Maximum Length:64
The user who last updated the record. -
LastUpdateLogin: string
Title:
Last Update Login
Read Only:true
Maximum Length:32
The login of the user who last updated the record. -
LightboxDocumentId: string
Title:
Document ID
Maximum Length:64
The unique identifier of the Lightbox document. -
links: array
Links
Title:
Links
The link relations associated with the resource instance. -
OriginalOwnerEmailAddress: string
Title:
Original Owner Email Address
Read Only:true
Maximum Length:320
The e-mail address of the employee resource who originally uploaded the Sales Lightbox document. -
OriginalOwnerName: string
Title:
Original Owner Name
Read Only:true
Maximum Length:450
The name of the employee resource who originally uploaded the document. -
OriginalOwnerPartyId: integer
(int64)
Title:
Original Owner Party ID
Read Only:true
The unique identifier of the original owner of the document. The original owner is the person who first uploaded the document. -
PublicDocumentDate: string
Title:
Public Document Date
Read Only:true
The date when a document was last made public. -
PublicDocumentFlag: boolean
Title:
Public Document
Maximum Length:1
Default Value:false
Identifies whether a document has been marked as public. - SharedDate: string (date-time)
- sharedPersons: array Shared-person Instances
-
Thumbnail: string
(byte)
Read Only:
true
The field used to get the document thumbnail through services. -
UpdateFlag: boolean
Read Only:
true
Indicates whether the record can be updated. The default value is true. -
UploadDate: string
(date-time)
Title:
Upload Date
Read Only:true
The date when the document was originally shared with the current user, or was last updated. It is used to provide the default sort ordering.
array
Lightbox Scoring Signals
array
Lightbox Document Pages
array
Document-Viewed-Within-Lightbox Signals
array
Document-viewed-outside-Lightbox Signals
array
Links
object
-
CreatedBy: string
Title:
Created By
Read Only:true
Maximum Length:64
The user who created the record. -
CreationDate: string
(date-time)
Title:
Creation Date
Read Only:true
The date when the record was created. -
LastUpdateDate: string
(date-time)
Title:
Last Updated Date
Read Only:true
The date when the record was last updated. -
LastUpdatedBy: string
Title:
Last Updated By
Read Only:true
Maximum Length:64
The user who last updated the record. -
LastUpdateLogin: string
Title:
Last Update Login
Read Only:true
Maximum Length:32
The login of the user who last updated the record. -
LightboxDocumentId: string
Title:
Document ID
Maximum Length:64
The unique identifier of the Lightbox document. -
LightboxDocumentRevision: string
Title:
Version
Maximum Length:64
The current revision of the document. -
LightboxSignalId: integer
(int64)
Title:
Lightbox Signal ID
The unique identifier of the Lightbox document's signal. -
links: array
Links
Title:
Links
The link relations associated with the resource instance. -
SignalDate: string
(date-time)
Title:
Signal Date
The date when the signal was captured.
array
Links
object
-
href: string
Title:
hyperlink reference
The URI to the related resource. -
kind: string
Title:
kind
Allowed Values:[ "collection", "item", "describe", "other" ]
The kind of the related resource. -
name: string
Title:
name
The name of the link to the related resource. -
properties: object
properties
-
rel: string
Title:
relation
Allowed Values:[ "self", "lov", "parent", "canonical", "child", "enclosure", "action", "custom" ]
The name of the relation to the resource instance. Example: self.
object
-
changeIndicator: string
Change indicator or the ETag value of the resource instance.
object
-
CreatedBy: string
Title:
Created By
Read Only:true
Maximum Length:64
The user who created the record. -
CreationDate: string
(date-time)
Title:
Creation Date
Read Only:true
The date when the record was created. -
CurrencyCode: string
Title:
Currency
Maximum Length:15
The currency code associated with the document pages. A list of valid values are defined in the lookup ZCA_COMMON_CORPORATE_CURRENCY. -
DocumentCurrentVersion: string
Title:
Current Version
Read Only:true
Maximum Length:30
The current version of the document. -
DocumentPageCount: integer
(int32)
Title:
Page Count
Read Only:true
The total number of pages in the document. -
DocumentPageImageURL: string
Read Only:
true
The URL of the high-fidelity page image. -
DocumentPageThumbnailURL: string
Title:
Document Page Thumbnail URL
Read Only:true
The URL to the document page thumbnail. -
LastUpdateDate: string
(date-time)
Title:
Last Updated Date
Read Only:true
The date when the record was last updated. -
LastUpdatedBy: string
Title:
Last Updated By
Read Only:true
Maximum Length:64
The user who last updated the record. -
LastUpdateLogin: string
Title:
Last Update Login
Read Only:true
Maximum Length:32
The login of the user who last updated the record. -
LightboxDocumentPageId: string
Title:
Document Page ID
Maximum Length:64
The unique identifier of the Lightbox document page. -
LightboxDocumentRevision: string
Title:
Version
Read Only:true
The current version of the document. -
links: array
Links
Title:
Links
The link relations associated with the resource instance. -
PageAddedToCartCount: integer
Title:
Lightbox Document Page Added to Cart Count
Read Only:true
The number of times the page of the Lightbox document has been added to the cart. -
pageAddedToCartSignals: array
Page-added-to-cart Signals
Title:
Page-added-to-cart Signals
The resource is used to view the signals captured when pages of a document are added to cart. -
PageDisplayTitle: string
Title:
Page Display Title
Read Only:true
Maximum Length:255
The page display title consisting of the page number, and either the page title or the total number of pages. -
PageDownloadedInCartCount: integer
Title:
Lightbox Document Page Downloaded to Cart Count
Read Only:true
The number of times the page of the Lightbox document has been downloaded to the cart. -
pageDownloadedInCartSignals: array
Downloaded-from-cart Signals
Title:
Downloaded-from-cart Signals
The resource is used to view the signals captured when pages within a cart are downloaded by the user. -
PageSequenceNumber: integer
(int32)
Title:
Page Sequence Number
The sequence number of the page in the document. -
PageThumbnail: string
(byte)
Read Only:
true
The field used to get the page thumbnail through services. -
PageTitle: string
Title:
Page Title
Maximum Length:255
The title of the page. -
PageViewedOutsideLightboxCount: integer
Title:
Outside Page Views
Read Only:true
The number of times the page was viewed outside Lightbox. -
pageViewedOutsideLightboxSignals: array
Page-viewed-outside-Lightbox Signals
Title:
Page-viewed-outside-Lightbox Signals
The resource is used to view and create signals that a Lightbox document's pages are viewed outside Lightbox. - SharedDate: string (date-time)
-
SimplePageDisplayTitle: string
Title:
Simplified Page Display Title
Read Only:true
Maximum Length:255
The simplified page display title consisting of either the page title, or the page number and the total number of pages. -
UpdateFlag: boolean
Indicates whether the record can be updated. The default value is true.
array
Links
array
Page-added-to-cart Signals
array
Downloaded-from-cart Signals
array
Page-viewed-outside-Lightbox Signals
object
-
CreatedBy: string
Title:
Created By
Read Only:true
Maximum Length:64
The user who created the record. -
CreationDate: string
(date-time)
Title:
Creation Date
Read Only:true
The date when the record was created. -
LastUpdateDate: string
(date-time)
Title:
Last Updated Date
Read Only:true
The date when the record was last updated. -
LastUpdatedBy: string
Title:
Last Updated By
Read Only:true
Maximum Length:64
The user who last updated the record. -
LastUpdateLogin: string
Title:
Last Update Login
Read Only:true
Maximum Length:32
The login of the user who last updated the record. -
LightboxDocumentId: string
Title:
Document ID
Maximum Length:64
The unique identifier of the Lightbox document. -
LightboxDocumentRevision: string
Title:
Version
Maximum Length:64
The current revision of the document. -
LightboxSignalId: integer
(int64)
Title:
Lightbox Signal ID
The unique identifier of the Lightbox document's signal. -
links: array
Links
Title:
Links
The link relations associated with the resource instance. -
PageSequenceNumber: integer
(int32)
Title:
Page Sequence Number
The sequence number of the page in the document. -
SignalDate: string
(date-time)
Title:
Signal Date
The date when the signal was captured.
array
Links
object
-
CreatedBy: string
Title:
Created By
Read Only:true
Maximum Length:64
The user who created the record. -
CreationDate: string
(date-time)
Title:
Creation Date
Read Only:true
The date when the record was created. -
LastUpdateDate: string
(date-time)
Title:
Last Updated Date
Read Only:true
The date when the record was last updated. -
LastUpdatedBy: string
Title:
Last Updated By
Read Only:true
Maximum Length:64
The user who last updated the record. -
LastUpdateLogin: string
Title:
Last Update Login
Read Only:true
Maximum Length:32
The login of the user who last updated the record. -
LightboxDocumentId: string
Title:
Document ID
Maximum Length:64
The unique identifier of the Lightbox document. -
LightboxDocumentRevision: string
Title:
Version
Maximum Length:64
The current revision of the document. -
LightboxSignalId: integer
(int64)
Title:
Lightbox Signal ID
The unique identifier of the Lightbox document's signal. -
links: array
Links
Title:
Links
The link relations associated with the resource instance. -
PageSequenceNumber: integer
(int32)
Title:
Page Sequence Number
The sequence number of the page in the document. -
SignalDate: string
(date-time)
Title:
Signal Date
The date when the signal was captured.
array
Links
object
-
CreatedBy: string
Title:
Created By
Read Only:true
Maximum Length:64
The user who created the record. -
CreationDate: string
(date-time)
Title:
Creation Date
Read Only:true
The date when the record was created. -
LastUpdateDate: string
(date-time)
Title:
Last Updated Date
Read Only:true
The date when the record was last updated. -
LastUpdatedBy: string
Title:
Last Updated By
Read Only:true
Maximum Length:64
The user who last updated the record. -
LastUpdateLogin: string
Title:
Last Update Login
Read Only:true
Maximum Length:32
The login of the user who last updated the record. -
LightboxDocumentId: string
Title:
Document ID
Maximum Length:64
The unique identifier of the Lightbox document. -
LightboxDocumentRevision: string
Title:
Version
Maximum Length:64
The current revision of the document. -
LightboxSignalId: integer
(int64)
Title:
Lightbox Signal ID
The unique identifier of the Lightbox document's signal. -
links: array
Links
Title:
Links
The link relations associated with the resource instance. -
PageSequenceNumber: integer
(int32)
Title:
Page Sequence Number
The sequence number of the page in the document. -
SignalDate: string
(date-time)
Title:
Signal Date
The date when the signal was captured.
array
Links
object
-
CreatedBy: string
Title:
Created By
Read Only:true
Maximum Length:64
The user who created the record. -
CreationDate: string
(date-time)
Title:
Creation Date
Read Only:true
The date when the record was created. -
LastUpdateDate: string
(date-time)
Title:
Last Updated Date
Read Only:true
The date when the record was last updated. -
LastUpdatedBy: string
Title:
Last Updated By
Read Only:true
Maximum Length:64
The user who last updated the record. -
LastUpdateLogin: string
Title:
Last Update Login
Read Only:true
Maximum Length:32
The login of the user who last updated the record. -
LightboxDocumentId: string
Title:
Document ID
Maximum Length:64
The unique identifier of the Lightbox document. -
LightboxDocumentRevision: string
Title:
Version
Maximum Length:64
The current revision of the document. -
LightboxSignalId: integer
(int64)
Title:
Lightbox Signal ID
The unique identifier of the Lightbox document's signal. -
links: array
Links
Title:
Links
The link relations associated with the resource instance. -
SignalDate: string
(date-time)
Title:
Signal Date
The sequence number of the page in the document.
array
Links
object
-
CreatedBy: string
Title:
Created By
Read Only:true
Maximum Length:64
The user who created the record. -
CreationDate: string
(date-time)
Title:
Creation Date
Read Only:true
The date when the record was created. -
LastUpdateDate: string
(date-time)
Title:
Last Updated Date
Read Only:true
The date when the record was last updated. -
LastUpdatedBy: string
Title:
Last Updated By
Read Only:true
Maximum Length:64
The user who last updated the record. -
LastUpdateLogin: string
Title:
Last Update Login
Read Only:true
Maximum Length:32
The login of the user who last updated the record. -
LightboxDocumentId: string
Title:
Document ID
Maximum Length:64
The unique identifier of the Lightbox document. -
LightboxDocumentRevision: string
Title:
Version
Maximum Length:64
The current revision of the document. -
LightboxSignalId: integer
(int64)
Title:
Lightbox Signal ID
The unique identifier of the Lightbox document's signal. -
links: array
Links
Title:
Links
The link relations associated with the resource instance. -
SignalDate: string
(date-time)
Title:
Signal Date
The date when the signal was captured.
array
Links
- LightboxDocumentTypeVO
-
The list of values indicating the document type.
The following properties are defined on the LOV link relation:- Source Attribute: DocumentTypeCode; Target Attribute: LightboxDocumentType
- Display Attribute: Meaning
- RatedCurrenciesVO
-
The list of values indicating the currency code used by the organization, such as USD and GBP.
The following properties are defined on the LOV link relation:- Source Attribute: CurrencyCode; Target Attribute: CurrencyCode
- Display Attribute: CurrencyCode
- YesNoLookup
-
Parameters:
- finder:
LookupTypeIsActiveEnabledFinder%3BBindLookupType%3DYES_NO
The list of values indicating if the document has been marked as public, such as true or false.
The following properties are defined on the LOV link relation:- Source Attribute: PublicDocumentFlag; Target Attribute: LookupCode
- Display Attribute: Meaning
- finder:
- documentDownloadSignals
-
Parameters:
- LightboxDocumentId:
$request.path.LightboxDocumentId
The resource is used to view the signals captured when a document is downloaded. - LightboxDocumentId:
- documentPages
-
Operation: /crmRestApi/resources/11.13.18.05/lightboxDocuments/{LightboxDocumentId}/child/documentPagesParameters:
- LightboxDocumentId:
$request.path.LightboxDocumentId
The Lightbox document page resource is used to view and update the pages within a Lightbox document. - LightboxDocumentId:
- documentSharedToUserSignals
-
Parameters:
- LightboxDocumentId:
$request.path.LightboxDocumentId
The resource is used to view the signals captured when a document is shared with a user. - LightboxDocumentId:
- documentUnsharedFromUserSignals
-
Parameters:
- LightboxDocumentId:
$request.path.LightboxDocumentId
The resource is used to view the signals captured when a document share with a user is deleted. - LightboxDocumentId:
- documentViewedInLightboxSignals
-
Parameters:
- LightboxDocumentId:
$request.path.LightboxDocumentId
The resource is used to view the signals that the document is viewed within Lightbox. - LightboxDocumentId:
- documentViewedOutsideLightboxSignals
-
Parameters:
- LightboxDocumentId:
$request.path.LightboxDocumentId
The resource is used to view and create the signals captured when document is viewed by a process outside Lightbox. - LightboxDocumentId:
- sharedPersons
-
Operation: /crmRestApi/resources/11.13.18.05/lightboxDocuments/{LightboxDocumentId}/child/sharedPersonsParameters:
- LightboxDocumentId:
$request.path.LightboxDocumentId
The shared person resource is used to view, create, and delete document shares. A document share lets you share the Lightbox document with another user. - LightboxDocumentId:
Examples
The following example shows how to update a Lightbox document by submitting a PATCH request on the REST resource using cURL.
cURL Command
curl --basic --user user_name:passwd -H
"Content-Type: application/octet-stream" --request PATCH --data-binary
@"/path/to/input/binaryFile.pptx" "http://servername.fa.us2.oraclecloud.com
/crmRestApi/resources/11.13.18.05/lightboxDocuments/{lightboxDocumentID}/enclosure/DocumentContents”
Example of Response Body
The following example shows the contents of the response body in JSON format.
{ "LightboxDocumentId": "e8c92910-9a95-4060-a205-dcdcb5ebf3e9", "DocumentTypeCode": "PDF", "FileName": "ADF String_Editor.pdf", "OriginalOwnerPartyId": 100010037456865, "OriginalOwnerName": "Matt Hooper", "OriginalOwnerEmailAddress": "sendmail-test-discard@your_org.com”, "DocumentOwnerFlag": true, "CurrentRevision": "3 (Uploading)", "KeyPageSequenceNumber": 1, "IsDocumentReadyFlag": true, "SharedDate": "2016-10-24T04:47:51-07:00", "CurrencyCode": "USD", "DocumentPageCount": 2, "DocumentThumbnailURL": "https://servername.fa.us2.oraclecloud.com/crmRestApi/lightboxresource/tn/UCMFA092457_2_1~.jpg", "FileSize": 100302, "DocumentDownloadURL": "https://servername.fa.us2.oraclecloud.com/crmRestApi/lightboxresource/doc/UCMFA092457~", "DocumentType": "PDF", "DocumentDownloadedCount": 0, "DocumentSharedToEntityCount": 0, "DocumentSharedToUserCount": 0, "DocumentViewedOutsideLightboxCount": 0, "DocumentViewedInLightboxCount": 0, "DocumentUnsharedFromUserCount": 0, "DeleteFlag": true, "IsSharedWithCurrentUserFlag": true, "IsDocumentUploadInProgressFlag": true, "UpdateFlag": false, "UploadDate": "2016-10-24T04:47:51-07:00", "CreationDate": "2016-10-07T12:03:11-07:00", "CreatedBy": "MHoope", "LastUpdateDate": "2016-10-26T04:47:53-07:00", "LastUpdatedBy": "MHoope", "LastUpdateLogin": "3FC090BE9CDC68AAE053DF00F40A57E0", "DocumentTitle": "ADF String_Editor", ... }
cURL Command
Update Property of a Lightbox document
The following example shows how to update Property of a Lightbox document by submitting a PATCH request on the REST resource using cURL.
curl --basic --user user_name:passwd -H
"Content-Type: application/vnd.oracle.adf.resourceitem+json" --request
PATCH –d ‘{“DocumentTitle”:”My New Title”}’ "http://servername.fa.us2.oraclecloud.com
/crmRestApi/resources/11.13.18.05/lightboxDocuments/{lightboxDocumentID}”
Example of Request Body
The following shows an example of the request body in JSON format.
{ “DocumentTitle”:”My New Title” }
Example of Response Body
The following example shows the contents of the response body in JSON format.
{ "LightboxDocumentId": "e8c92910-9a95-4060-a205-dcdcb5ebf3e9", "DocumentTypeCode": "PDF", "FileName": "ADF String_Editor.pdf", "OriginalOwnerPartyId": 100010037456865, "OriginalOwnerName": "Matt Hooper", "OriginalOwnerEmailAddress": "sendmail-test-discard@your_org.com”, "DocumentOwnerFlag": true, "CurrentRevision": "3 (Uploading)", "KeyPageSequenceNumber": 1, "IsDocumentReadyFlag": true, "SharedDate": "2016-10-24T04:47:51-07:00", "CurrencyCode": "USD", "DocumentPageCount": 2, "DocumentThumbnailURL": "https://servername.fa.us2.oraclecloud.com/crmRestApi/lightboxresource/tn/UCMFA092457_2_1~.jpg", "FileSize": 100302, "DocumentDownloadURL": "https://servername.fa.us2.oraclecloud.com/crmRestApi/lightboxresource/doc/UCMFA092457~", "DocumentType": "PDF", "DocumentDownloadedCount": 0, "DocumentSharedToEntityCount": 0, "DocumentSharedToUserCount": 0, "DocumentViewedOutsideLightboxCount": 0, "DocumentViewedInLightboxCount": 0, "DocumentUnsharedFromUserCount": 0, "DeleteFlag": true, "IsSharedWithCurrentUserFlag": true, "IsDocumentUploadInProgressFlag": true, "UpdateFlag": false, "UploadDate": "2016-10-24T04:47:51-07:00", "CreationDate": "2016-10-07T12:03:11-07:00", "CreatedBy": "MHoope", "LastUpdateDate": "2016-10-26T04:47:53-07:00", "LastUpdatedBy": "MHoope", "LastUpdateLogin": "3FC090BE9CDC68AAE053DF00F40A57E0", "DocumentTitle": "My New Title", ... }