Update a Lightbox document

patch

/crmRestApi/resources/11.13.18.05/lightboxDocuments/{LightboxDocumentId}

Request

Path Parameters
Header Parameters
  • 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".
  • 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.
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
Nested Schema : Lightbox Scoring Signals
Type: array
Title: Lightbox Scoring Signals
The resource is used to view the signals captured when a document is downloaded.
Show Source
Nested Schema : Lightbox Document Pages
Type: array
Title: Lightbox Document Pages
The Lightbox document page resource is used to view and update the pages within a Lightbox document.
Show Source
Nested Schema : Document-shared-with-user Signals
Type: array
Title: Document-shared-with-user Signals
The resource is used to view the signals captured when a document is shared with a user.
Show Source
Nested Schema : Document-unshared-with-user Signals
Type: array
Title: Document-unshared-with-user Signals
The resource is used to view the signals captured when a document share with a user is deleted.
Show Source
Nested Schema : Document-Viewed-Within-Lightbox Signals
Type: array
Title: Document-Viewed-Within-Lightbox Signals
The resource is used to view the signals that the document is viewed within Lightbox.
Show Source
Nested Schema : Document-viewed-outside-Lightbox Signals
Type: array
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.
Show Source
Nested Schema : Shared-person Instances
Type: array
Title: Shared-person Instances
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.
Show Source
Nested Schema : lightboxDocuments-documentDownloadSignals-item-patch-request
Type: object
Show Source
Nested Schema : lightboxDocuments-documentPages-item-patch-request
Type: object
Show Source
Nested Schema : Page-added-to-cart Signals
Type: array
Title: Page-added-to-cart Signals
The resource is used to view the signals captured when pages of a document are added to cart.
Show Source
Nested Schema : Downloaded-from-cart Signals
Type: array
Title: Downloaded-from-cart Signals
The resource is used to view the signals captured when pages within a cart are downloaded by the user.
Show Source
Nested Schema : Page-viewed-outside-Lightbox Signals
Type: array
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.
Show Source
Nested Schema : lightboxDocuments-documentPages-pageAddedToCartSignals-item-patch-request
Type: object
Show Source
Nested Schema : lightboxDocuments-documentPages-pageDownloadedInCartSignals-item-patch-request
Type: object
Show Source
Nested Schema : lightboxDocuments-documentPages-pageViewedOutsideLightboxSignals-item-patch-request
Type: object
Show Source
Nested Schema : lightboxDocuments-documentSharedToUserSignals-item-patch-request
Type: object
Show Source
Nested Schema : lightboxDocuments-documentUnsharedFromUserSignals-item-patch-request
Type: object
Show Source
Nested Schema : lightboxDocuments-documentViewedInLightboxSignals-item-patch-request
Type: object
Show Source
Nested Schema : lightboxDocuments-documentViewedOutsideLightboxSignals-item-patch-request
Type: object
Show Source
Nested Schema : lightboxDocuments-sharedPersons-item-patch-request
Type: object
Show Source
Back to Top

Response

Supported Media Types

Default Response

The following table describes the default response for this task.
Headers
  • 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".
  • 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.
Body ()
Root Schema : lightboxDocuments-item-response
Type: object
Show Source
Nested Schema : Lightbox Scoring Signals
Type: array
Title: Lightbox Scoring Signals
The resource is used to view the signals captured when a document is downloaded.
Show Source
Nested Schema : Lightbox Document Pages
Type: array
Title: Lightbox Document Pages
The Lightbox document page resource is used to view and update the pages within a Lightbox document.
Show Source
Nested Schema : Document-shared-with-user Signals
Type: array
Title: Document-shared-with-user Signals
The resource is used to view the signals captured when a document is shared with a user.
Show Source
Nested Schema : Document-unshared-with-user Signals
Type: array
Title: Document-unshared-with-user Signals
The resource is used to view the signals captured when a document share with a user is deleted.
Show Source
Nested Schema : Document-Viewed-Within-Lightbox Signals
Type: array
Title: Document-Viewed-Within-Lightbox Signals
The resource is used to view the signals that the document is viewed within Lightbox.
Show Source
Nested Schema : Document-viewed-outside-Lightbox Signals
Type: array
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.
Show Source
Nested Schema : Shared-person Instances
Type: array
Title: Shared-person Instances
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.
Show Source
Nested Schema : lightboxDocuments-documentDownloadSignals-item-response
Type: object
Show Source
Nested Schema : lightboxDocuments-documentPages-item-response
Type: object
Show Source
Nested Schema : Page-added-to-cart Signals
Type: array
Title: Page-added-to-cart Signals
The resource is used to view the signals captured when pages of a document are added to cart.
Show Source
Nested Schema : Downloaded-from-cart Signals
Type: array
Title: Downloaded-from-cart Signals
The resource is used to view the signals captured when pages within a cart are downloaded by the user.
Show Source
Nested Schema : Page-viewed-outside-Lightbox Signals
Type: array
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.
Show Source
Nested Schema : lightboxDocuments-documentPages-pageAddedToCartSignals-item-response
Type: object
Show Source
Nested Schema : lightboxDocuments-documentPages-pageDownloadedInCartSignals-item-response
Type: object
Show Source
Nested Schema : lightboxDocuments-documentPages-pageViewedOutsideLightboxSignals-item-response
Type: object
Show Source
Nested Schema : lightboxDocuments-documentSharedToUserSignals-item-response
Type: object
Show Source
Nested Schema : lightboxDocuments-documentUnsharedFromUserSignals-item-response
Type: object
Show Source
Nested Schema : lightboxDocuments-documentViewedInLightboxSignals-item-response
Type: object
Show Source
Nested Schema : lightboxDocuments-documentViewedOutsideLightboxSignals-item-response
Type: object
Show Source
Nested Schema : lightboxDocuments-sharedPersons-item-response
Type: object
Show Source
Back to Top

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",
 ...
}
Back to Top