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: string
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: string
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:
CurrencyMaximum Length:15The 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 SignalsThe resource is used to view the signals captured when a document is downloaded. -
documentPages: array
Lightbox Document Pages
Title:
Lightbox Document PagesThe 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 TitleMaximum Length:255The 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 SignalsThe 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 SignalsThe resource is used to view and create the signals captured when document is viewed by a process outside Lightbox. -
KeyPageSequenceNumber: integer
Title:
Thumbnail Page NumberThe page number of the thumbnail. -
PublicDocumentFlag: boolean
Title:
Public DocumentMaximum Length:1Default Value:falseIdentifies whether a document has been marked as public. - sharedPersons: array Shared-person Instances
arrayLightbox Scoring SignalsarrayLightbox Document PagesarrayDocument-Viewed-Within-Lightbox SignalsarrayDocument-viewed-outside-Lightbox Signalsobjectobject-
CurrencyCode: string
Title:
CurrencyMaximum Length:15The 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 SignalsThe 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 SignalsThe resource is used to view the signals captured when pages within a cart are downloaded by the user. -
PageTitle: string
Title:
Page TitleMaximum Length:255The title of the page. -
pageViewedOutsideLightboxSignals: array
Page-viewed-outside-Lightbox Signals
Title:
Page-viewed-outside-Lightbox SignalsThe 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.
arrayPage-added-to-cart SignalsarrayDownloaded-from-cart SignalsarrayPage-viewed-outside-Lightbox SignalsobjectobjectobjectobjectobjectResponse
- 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 ByRead Only:trueMaximum Length:64The user who created the record. -
CreationDate: string
(date-time)
Title:
Creation DateRead Only:trueThe date when the record was created. -
CurrencyCode: string
Title:
CurrencyMaximum Length:15The 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 VersionRead Only:trueThe current version of the document. -
DeleteFlag: boolean
Read Only:
trueIndicates 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:
DownloadsRead Only:trueThe number of times the document has been downloaded. -
documentDownloadSignals: array
Lightbox Scoring Signals
Title:
Lightbox Scoring SignalsThe resource is used to view the signals captured when a document is downloaded. -
DocumentDownloadURL: string
Title:
Document Download URLRead Only:trueThe URL to the document. -
DocumentOwnerFlag: boolean
Title:
OwnerRead Only:trueMaximum Length:1Default Value:trueThe owner of the document. -
DocumentPageCount: integer
(int32)
Title:
Page CountRead Only:trueDefault Value:0The page count of the user. -
documentPages: array
Lightbox Document Pages
Title:
Lightbox Document PagesThe 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 URLRead Only:trueThe URL to the document thumbnail. -
DocumentTitle: string
Title:
Document TitleMaximum Length:255The 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 DescriptionRead Only:trueThe description of the document type. -
DocumentTypeCode: string
Title:
File TypeRead Only:trueMaximum Length:30The 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 ViewsRead Only:trueThe number of times the document has been viewed in Lightbox. -
documentViewedInLightboxSignals: array
Document-Viewed-Within-Lightbox Signals
Title:
Document-Viewed-Within-Lightbox SignalsThe resource is used to view the signals that the document is viewed within Lightbox. -
DocumentViewedOutsideLightboxCount: integer
Title:
Outside Document ViewsRead Only:trueThe number of times the document has been viewed outside Lightbox. -
documentViewedOutsideLightboxSignals: array
Document-viewed-outside-Lightbox Signals
Title:
Document-viewed-outside-Lightbox SignalsThe resource is used to view and create the signals captured when document is viewed by a process outside Lightbox. -
FileName: string
Title:
File NameMaximum Length:1000The file name of the document. -
FileSize: integer
(int64)
Title:
File SizeRead Only:trueDefault Value:-1The file size of the document. -
IsDocumentReadyFlag: boolean
Title:
Document ReadyRead Only:trueIndicates if the document is ready for sharing. The default value is true. -
IsDocumentUploadInProgressFlag: boolean
Title:
Document Upload in ProgressRead Only:trueMaximum Length:1Indicates whether a document upload is in progress. You cannot access certain functions during the upload process. - IsSharedWithCurrentUserFlag: boolean
-
KeyPageSequenceNumber: integer
Title:
Thumbnail Page NumberThe page number of the thumbnail. -
LastUpdateDate: string
(date-time)
Title:
Last Updated DateRead Only:trueThe date when the record was last updated. -
LastUpdatedBy: string
Title:
Last Updated ByRead Only:trueMaximum Length:64The user who last updated the record. -
LastUpdateLogin: string
Title:
Last Update LoginRead Only:trueMaximum Length:32The login of the user who last updated the record. -
LightboxDocumentId: string
Title:
Document IDMaximum Length:64The unique identifier of the Lightbox document. -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
OriginalOwnerEmailAddress: string
Title:
Original Owner Email AddressRead Only:trueMaximum Length:320The e-mail address of the employee resource who originally uploaded the Sales Lightbox document. -
OriginalOwnerName: string
Title:
Original Owner NameRead Only:trueMaximum Length:450The name of the employee resource who originally uploaded the document. -
OriginalOwnerPartyId: integer
(int64)
Title:
Original Owner Party IDRead Only:trueThe 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 DateRead Only:trueThe date when a document was last made public. -
PublicDocumentFlag: boolean
Title:
Public DocumentMaximum Length:1Default Value:falseIdentifies whether a document has been marked as public. - SharedDate: string (date-time)
- sharedPersons: array Shared-person Instances
-
Thumbnail: string
(byte)
Read Only:
trueThe field used to get the document thumbnail through services. -
UpdateFlag: boolean
Read Only:
trueIndicates whether the record can be updated. The default value is true. -
UploadDate: string
(date-time)
Title:
Upload DateRead Only:trueThe date when the document was originally shared with the current user, or was last updated. It is used to provide the default sort ordering.
arrayLightbox Scoring SignalsarrayLightbox Document PagesarrayDocument-Viewed-Within-Lightbox SignalsarrayDocument-viewed-outside-Lightbox SignalsarrayLinksobject-
CreatedBy: string
Title:
Created ByRead Only:trueMaximum Length:64The user who created the record. -
CreationDate: string
(date-time)
Title:
Creation DateRead Only:trueThe date when the record was created. -
LastUpdateDate: string
(date-time)
Title:
Last Updated DateRead Only:trueThe date when the record was last updated. -
LastUpdatedBy: string
Title:
Last Updated ByRead Only:trueMaximum Length:64The user who last updated the record. -
LastUpdateLogin: string
Title:
Last Update LoginRead Only:trueMaximum Length:32The login of the user who last updated the record. -
LightboxDocumentId: string
Title:
Document IDMaximum Length:64The unique identifier of the Lightbox document. -
LightboxDocumentRevision: string
Title:
VersionMaximum Length:64The current revision of the document. -
LightboxSignalId: integer
(int64)
Title:
Lightbox Signal IDThe unique identifier of the Lightbox document's signal. -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
SignalDate: string
(date-time)
Title:
Signal DateThe date when the signal was captured.
arrayLinksobject-
href: string
Title:
hyperlink referenceThe URI to the related resource. -
kind: string
Title:
kindAllowed Values:[ "collection", "item", "describe", "other" ]The kind of the related resource. -
name: string
Title:
nameThe name of the link to the related resource. -
properties: object
properties
-
rel: string
Title:
relationAllowed 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 ByRead Only:trueMaximum Length:64The user who created the record. -
CreationDate: string
(date-time)
Title:
Creation DateRead Only:trueThe date when the record was created. -
CurrencyCode: string
Title:
CurrencyMaximum Length:15The 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 VersionRead Only:trueMaximum Length:30The current version of the document. -
DocumentPageCount: integer
(int32)
Title:
Page CountRead Only:trueThe total number of pages in the document. -
DocumentPageImageURL: string
Read Only:
trueThe URL of the high-fidelity page image. -
DocumentPageThumbnailURL: string
Title:
Document Page Thumbnail URLRead Only:trueThe URL to the document page thumbnail. -
LastUpdateDate: string
(date-time)
Title:
Last Updated DateRead Only:trueThe date when the record was last updated. -
LastUpdatedBy: string
Title:
Last Updated ByRead Only:trueMaximum Length:64The user who last updated the record. -
LastUpdateLogin: string
Title:
Last Update LoginRead Only:trueMaximum Length:32The login of the user who last updated the record. -
LightboxDocumentPageId: string
Title:
Document Page IDMaximum Length:64The unique identifier of the Lightbox document page. -
LightboxDocumentRevision: string
Title:
VersionRead Only:trueThe current version of the document. -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
PageAddedToCartCount: integer
Title:
Lightbox Document Page Added to Cart CountRead Only:trueThe 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 SignalsThe resource is used to view the signals captured when pages of a document are added to cart. -
PageDisplayTitle: string
Title:
Page Display TitleRead Only:trueMaximum Length:255The 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 CountRead Only:trueThe 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 SignalsThe resource is used to view the signals captured when pages within a cart are downloaded by the user. -
PageSequenceNumber: integer
(int32)
Title:
Page Sequence NumberThe sequence number of the page in the document. -
PageThumbnail: string
(byte)
Read Only:
trueThe field used to get the page thumbnail through services. -
PageTitle: string
Title:
Page TitleMaximum Length:255The title of the page. -
PageViewedOutsideLightboxCount: integer
Title:
Outside Page ViewsRead Only:trueThe number of times the page was viewed outside Lightbox. -
pageViewedOutsideLightboxSignals: array
Page-viewed-outside-Lightbox Signals
Title:
Page-viewed-outside-Lightbox SignalsThe 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 TitleRead Only:trueMaximum Length:255The 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.
arrayLinksarrayPage-added-to-cart SignalsarrayDownloaded-from-cart SignalsarrayPage-viewed-outside-Lightbox Signalsobject-
CreatedBy: string
Title:
Created ByRead Only:trueMaximum Length:64The user who created the record. -
CreationDate: string
(date-time)
Title:
Creation DateRead Only:trueThe date when the record was created. -
LastUpdateDate: string
(date-time)
Title:
Last Updated DateRead Only:trueThe date when the record was last updated. -
LastUpdatedBy: string
Title:
Last Updated ByRead Only:trueMaximum Length:64The user who last updated the record. -
LastUpdateLogin: string
Title:
Last Update LoginRead Only:trueMaximum Length:32The login of the user who last updated the record. -
LightboxDocumentId: string
Title:
Document IDMaximum Length:64The unique identifier of the Lightbox document. -
LightboxDocumentRevision: string
Title:
VersionMaximum Length:64The current revision of the document. -
LightboxSignalId: integer
(int64)
Title:
Lightbox Signal IDThe unique identifier of the Lightbox document's signal. -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
PageSequenceNumber: integer
(int32)
Title:
Page Sequence NumberThe sequence number of the page in the document. -
SignalDate: string
(date-time)
Title:
Signal DateThe date when the signal was captured.
arrayLinksobject-
CreatedBy: string
Title:
Created ByRead Only:trueMaximum Length:64The user who created the record. -
CreationDate: string
(date-time)
Title:
Creation DateRead Only:trueThe date when the record was created. -
LastUpdateDate: string
(date-time)
Title:
Last Updated DateRead Only:trueThe date when the record was last updated. -
LastUpdatedBy: string
Title:
Last Updated ByRead Only:trueMaximum Length:64The user who last updated the record. -
LastUpdateLogin: string
Title:
Last Update LoginRead Only:trueMaximum Length:32The login of the user who last updated the record. -
LightboxDocumentId: string
Title:
Document IDMaximum Length:64The unique identifier of the Lightbox document. -
LightboxDocumentRevision: string
Title:
VersionMaximum Length:64The current revision of the document. -
LightboxSignalId: integer
(int64)
Title:
Lightbox Signal IDThe unique identifier of the Lightbox document's signal. -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
PageSequenceNumber: integer
(int32)
Title:
Page Sequence NumberThe sequence number of the page in the document. -
SignalDate: string
(date-time)
Title:
Signal DateThe date when the signal was captured.
arrayLinksobject-
CreatedBy: string
Title:
Created ByRead Only:trueMaximum Length:64The user who created the record. -
CreationDate: string
(date-time)
Title:
Creation DateRead Only:trueThe date when the record was created. -
LastUpdateDate: string
(date-time)
Title:
Last Updated DateRead Only:trueThe date when the record was last updated. -
LastUpdatedBy: string
Title:
Last Updated ByRead Only:trueMaximum Length:64The user who last updated the record. -
LastUpdateLogin: string
Title:
Last Update LoginRead Only:trueMaximum Length:32The login of the user who last updated the record. -
LightboxDocumentId: string
Title:
Document IDMaximum Length:64The unique identifier of the Lightbox document. -
LightboxDocumentRevision: string
Title:
VersionMaximum Length:64The current revision of the document. -
LightboxSignalId: integer
(int64)
Title:
Lightbox Signal IDThe unique identifier of the Lightbox document's signal. -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
PageSequenceNumber: integer
(int32)
Title:
Page Sequence NumberThe sequence number of the page in the document. -
SignalDate: string
(date-time)
Title:
Signal DateThe date when the signal was captured.
arrayLinksobject-
CreatedBy: string
Title:
Created ByRead Only:trueMaximum Length:64The user who created the record. -
CreationDate: string
(date-time)
Title:
Creation DateRead Only:trueThe date when the record was created. -
LastUpdateDate: string
(date-time)
Title:
Last Updated DateRead Only:trueThe date when the record was last updated. -
LastUpdatedBy: string
Title:
Last Updated ByRead Only:trueMaximum Length:64The user who last updated the record. -
LastUpdateLogin: string
Title:
Last Update LoginRead Only:trueMaximum Length:32The login of the user who last updated the record. -
LightboxDocumentId: string
Title:
Document IDMaximum Length:64The unique identifier of the Lightbox document. -
LightboxDocumentRevision: string
Title:
VersionMaximum Length:64The current revision of the document. -
LightboxSignalId: integer
(int64)
Title:
Lightbox Signal IDThe unique identifier of the Lightbox document's signal. -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
SignalDate: string
(date-time)
Title:
Signal DateThe sequence number of the page in the document.
arrayLinksobject-
CreatedBy: string
Title:
Created ByRead Only:trueMaximum Length:64The user who created the record. -
CreationDate: string
(date-time)
Title:
Creation DateRead Only:trueThe date when the record was created. -
LastUpdateDate: string
(date-time)
Title:
Last Updated DateRead Only:trueThe date when the record was last updated. -
LastUpdatedBy: string
Title:
Last Updated ByRead Only:trueMaximum Length:64The user who last updated the record. -
LastUpdateLogin: string
Title:
Last Update LoginRead Only:trueMaximum Length:32The login of the user who last updated the record. -
LightboxDocumentId: string
Title:
Document IDMaximum Length:64The unique identifier of the Lightbox document. -
LightboxDocumentRevision: string
Title:
VersionMaximum Length:64The current revision of the document. -
LightboxSignalId: integer
(int64)
Title:
Lightbox Signal IDThe unique identifier of the Lightbox document's signal. -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
SignalDate: string
(date-time)
Title:
Signal DateThe date when the signal was captured.
arrayLinks- 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",
...
}