Update a Lightbox document page

patch

/crmRestApi/resources/11.13.18.05/lightboxDocuments/{LightboxDocumentId}/child/documentPages/{LightboxDocumentPageId}

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 : 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
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-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
Back to Top

Examples

The following example shows how to update properties of a Lightbox document page by submitting a PATCH request on the REST resource using cURL.

cURL Command

curl --basic --user user_name:passwd -H "Content-Type: application/vnd.oracle.adf.resourceitem+json" -X PATCH -d ‘{“PageTitle”:”My New Page Title”}’ http://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/lightboxDocuments/{lightboxDocumentID}/child/documentPages/{documentPageID}

Example of Request Body

The following shows an example of the request body in JSON format.

{
“PageTitle”:”My New Page Title”
}

Example of Response Body

The following example shows the contents of the response body in JSON format.

{
      {
      "LightboxDocumentPageId": "4be54bb2-d827-4438-b7a2-2e0b1dd4423d",
      "PageSequenceNumber": 2,
      "DocumentPageCount": 2,
      "LightboxDocumentRevision": "1",
      "SharedDate": "2016-09-26T08:32:21-07:00",
      "CurrencyCode": "USD",
      "DocumentPageThumbnailURL": "https://servername.fa.us2.oraclecloud.com/crmRestApi/lightboxresource/tn/UCMFA081778_1_2~.jpg",
      "PageAddedToCartCount": 0,
      "PageDownloadedInCartCount": 0,
      "PageViewedOutsideLightboxCount": 0,
      "CreationDate": "2016-09-26T08:32:20-07:00",
      "CreatedBy": "MHoope",
      "LastUpdateDate": "2016-09-26T08:32:23-07:00",
      "LastUpdatedBy": "MHoope",
      "LastUpdateLogin": "3D66BE490BF85D7DE053DF00F40AC044",
      "DocumentPageImageURL": "https://servername.fa.us2.oraclecloud.com/crmRestApi/lightboxresource/img/UCMFA081778_1_2-C~.png",
      "DocumentCurrentVersion": "1",
      "PageTitle": “My New Page Title”,
      "PageDisplayTitle": "2 of 2",
      "SimplePageDisplayTitle": "2 of 2",
      "UpdateFlag": "true",
 ...
    }
}
Back to Top