1{
2 "contentType": "PRESENTATION_ZIP", // Valid values: PRESENTATION_PDF, PRESENTATION_ZIP, or PRESENTATION_PAGE.
3
4 // Required for PDF or ZIP content types. Not required for PRESENTATION_PAGE.
5 "presentation": {
6 "name": "demo-presentation-name",
7 "id": "demo-presentation-id",
8 "enableDoubleTapZoom": true,
9 "enablePinchZoom": false,
10 "playerGesture": "Swipeup",
11 "activationDate": "2019-06-03T15:00:00.000Z",
12 "deactivationDate": "2019-06-03T15:00:00.000Z",
13
14 // These fields are only valid for PRESENTATION_ZIP.
15 "topics": [
16 "topic_id_1",
17 "topic_id_2"
18 ],
19 "sendByEmail": false,
20 "publicContentName": "public_content_name",
21 "publicContentUrl": "public_content_url",
22
23 "customFields": [
24 {
25 "fieldName": "Custom_Text_Field__c",
26 "fieldValue": "custom_field_value_1_string"
27 }
28 ]
29 },
30
31 // Only one page can be provided for PRESENTATION_PAGE.
32 "pages": [
33 {
34 // Required only for PRESENTATION_PDF. Must be 1 for the file page, and incremented for subsequent PDF pages. Not required for ZIP/PAGE.
35 "pageNumber": 1,
36 "name": "demo-presentation-page1",
37 "mandatory": false,
38 "activationDate": "2019-06-03T15:00:00.000Z",
39 "deactivationDate": "2019-06-03T15:00:00.000Z",
40
41 /* File input (contentDocumentId or fileId) is ONLY required if you are UPDATING the content of the presentation.
42 - For PDF: File input is ONLY provided on the page where pageNumber is 1. Omit fileId/contentDocumentId if only updating metadata.
43 - For ZIP/PAGE: File input is required for ALL pages if their content is changing.
44 */
45 "contentDocumentId": "069xx0000004gbkAAA",
46 //"fileId": "file1-key", /* Use contentDocumentId OR fileId, but not both. */
47
48 "id": "demo-page-id-1", // Required for ZIP/PAGE. Omit for PRESENTATION_PDF.
49 "isAdditionalContent": false, // Required for ZIP/PAGE. Omit for PRESENTATION_PDF.
50
51 "customFields": [
52 {
53 "fieldName": "custom_field_name_1",
54 "fieldValue": 45
55 }
56 ],
57 "products": [
58 {
59 "productId": "1Kexx0000004C92CAE",
60 "guidanceIds": [
61 "1Kgxx0000004C92CAE"
62 ]
63 }
64 ]
65 },
66 {
67 /* Second page example. */
68 //"pageNumber": 2, /* Must be included for a second page if contentType is PRESENTATION_PDF. */
69 "name": "demo-presentation-page2",
70 "mandatory": false,
71 "activationDate": "2019-06-03T15:00:00.000Z",
72 "deactivationDate": "2019-06-03T15:00:00.000Z",
73
74 // File input is required here for ZIP/PAGE if content is being updated. Not required for PDF.
75 "contentDocumentId": "069xx0000004gbcAAB",
76
77 "id": "demo-page-id-2", // Required for ZIP/PAGE.
78 "isAdditionalContent": false, // Required for ZIP/PAGE.
79
80 "customFields": [
81 {
82 "fieldName": "custom_field_name_1",
83 "fieldValue": "custom_field_value_1"
84 }
85 ],
86 "products": [
87 {
88 "productId": "1Kexx0000004C92CAE",
89 "guidanceIds": [
90 "1Kgxx0000004C92CAE"
91 ]
92 }
93 ]
94 }
95 ]
96}