Create a Lightbox presentation session

post

/crmRestApi/resources/11.13.18.05/presentationSessions

Request

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.
  • Contains one of the following values: true or false. If true, the server performs an Upsert operation instead of a Create operation. During an Upsert operation, the server attempts to find an existing resource that matches the payload. If a match is found, the server updates the existing resource instead of creating a new one. If not found or false (default), the server performs a Create operation. Note that the Upsert operation isn't supported for date-effective REST resources.
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
  • Title: Account ID
    The unique identifier of the account for which the presentation session was conducted. The default value is obtained from Activity unless specified during create.
  • Title: Account
    Maximum Length: 360
    The name of the account for which the presentation session was conducted.
  • Title: Activity ID
    The unique identifier of the activity for the presentation session.
  • Title: Session ID
    The unique identifier of the Lightbox presentation session.
  • Presentation Session Attendance Events
    Title: Presentation Session Attendance Events
    The presentation session attendance events resource is used to view and create the event attendance. Presentation session events attendance is used to keep track of the audience who attended a session when a Lightbox document was displayed.
  • Title: Session Date
    The date and time when the Lightbox presentation session was conducted. The default value is obtained from Activity unless specified during create.
  • Presentation Session Display Events
    Title: Presentation Session Display Events
    The presentation session display events resource is used to view and create the display events. Display events log the start and stop times during which a Lightbox document page was displayed during a presentation session.
  • Title: Session Owner ID
    The unique identifier of the owner of the presentation session. This person is the primary presenter of Lightbox documents. The default value is obtained from the user's PartyId unless specified during create.
Nested Schema : Presentation Session Attendance Events
Type: array
Title: Presentation Session Attendance Events
The presentation session attendance events resource is used to view and create the event attendance. Presentation session events attendance is used to keep track of the audience who attended a session when a Lightbox document was displayed.
Show Source
Nested Schema : Presentation Session Display Events
Type: array
Title: Presentation Session Display Events
The presentation session display events resource is used to view and create the display events. Display events log the start and stop times during which a Lightbox document page was displayed during a presentation session.
Show Source
Nested Schema : presentationSessions-sessionAttendanceEvents-item-post-request
Type: object
Show Source
Nested Schema : schema
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 : presentationSessions-item-response
Type: object
Show Source
  • Title: Account ID
    The unique identifier of the account for which the presentation session was conducted. The default value is obtained from Activity unless specified during create.
  • Title: Account
    Maximum Length: 360
    The name of the account for which the presentation session was conducted.
  • Title: Registry ID
    Read Only: true
    Maximum Length: 30
    The registry identifier for the account for which the presentation session was conducted.
  • Title: Activity Account ID
    Read Only: true
    The unique identifier of the activity account. This attribute is not available for ad-hoc presentation sessions.
  • Title: Activity Account
    Read Only: true
    Maximum Length: 900
    The name of the activity account for the presentation session. This attribute is not available for ad-hoc presentation sessions.
  • Title: Activity Registry ID
    Read Only: true
    Maximum Length: 30
    The registry identifier for the activity account for the presentation session. This attribute is not available for ad-hoc presentation sessions.
  • Title: Activity ID
    The unique identifier of the activity for the presentation session.
  • Title: Activity Number
    Read Only: true
    Maximum Length: 64
    The activity number for the presentation session.
  • Title: Subject
    Read Only: true
    Maximum Length: 500
    The subject of the activity for the presentation session.
  • Title: Created By
    Read Only: true
    Maximum Length: 64
    The user who created the record.
  • Title: Creation Date
    Read Only: true
    The date when the record was created.
  • Read Only: true
    Indicates whether the record can be deleted. The default value is true.
  • Title: Last Updated Date
    Read Only: true
    The date when the record was last updated.
  • Title: Last Updated By
    Read Only: true
    Maximum Length: 64
    The user who last updated the record.
  • Title: Last Update Login
    Read Only: true
    Maximum Length: 32
    The login of the user who last updated the record.
  • Links
  • Title: Session ID
    The unique identifier of the Lightbox presentation session.
  • Presentation Session Attendance Events
    Title: Presentation Session Attendance Events
    The presentation session attendance events resource is used to view and create the event attendance. Presentation session events attendance is used to keep track of the audience who attended a session when a Lightbox document was displayed.
  • Title: Session Date
    The date and time when the Lightbox presentation session was conducted. The default value is obtained from Activity unless specified during create.
  • Presentation Session Display Events
    Title: Presentation Session Display Events
    The presentation session display events resource is used to view and create the display events. Display events log the start and stop times during which a Lightbox document page was displayed during a presentation session.
  • Title: Owner Primary Email
    Read Only: true
    Maximum Length: 320
    The e-mail address of the owner of the presentation session.
  • Title: Session Owner ID
    The unique identifier of the owner of the presentation session. This person is the primary presenter of Lightbox documents. The default value is obtained from the user's PartyId unless specified during create.
  • Title: Owner Name
    Read Only: true
    Maximum Length: 360
    The name of the owner of the presentation session.
  • Title: Owner Title
    Read Only: true
    Maximum Length: 60
    The title of the owner of the presentation session.
  • Title: Total Session Display Duration
    Read Only: true
    Default Value: 1
    The summed duration of all presentation session display events of all Lightbox document pages presented during the presentation session. The value is in seconds.
  • Read Only: true
    Indicates whether the record can be updated. The default value is true.
Nested Schema : Presentation Session Attendance Events
Type: array
Title: Presentation Session Attendance Events
The presentation session attendance events resource is used to view and create the event attendance. Presentation session events attendance is used to keep track of the audience who attended a session when a Lightbox document was displayed.
Show Source
Nested Schema : Presentation Session Display Events
Type: array
Title: Presentation Session Display Events
The presentation session display events resource is used to view and create the display events. Display events log the start and stop times during which a Lightbox document page was displayed during a presentation session.
Show Source
Nested Schema : presentationSessions-sessionAttendanceEvents-item-response
Type: object
Show Source
Nested Schema : presentationSessions-sessionDisplayEvents-item-response
Type: object
Show Source
Back to Top

Examples

The following example shows how to create a Lightbox presentation session by submitting a POST request on the REST resource using cURL.

Create a Lightbox presentation session with reference to an appointment activity

cURL Command

curl --user sales_cloud_user -X POST -d @example_request_payload.json https://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/presentationSessions

Example of Request Body

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

{
"ActivityId":300100089786738
}

Example of Response Body

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

{
  "PresentationSessionId": 300100089786740,
  "SessionDate": "2017-02-16T00:30:00+00:00",
  "ActivityId": 300100089786738,
  "ActivitySubject": "Payload Examples",
  "ActivityNumber": "CDRM_56153",
  "AccountId": 1004,
  "AccountName": "Hilman and Associates",
  "AccountPartyNumber": "1004",
  "ActivityAccountId": 1004,
  "ActivityAccountName": "Hilman and Associates US)",
  "ActivityAccountPartyNumber": "1004",
  "SessionOwnerId": 100010032752947,
  "SessionOwnerName": "Ryan,Katy",
  "SessionOwnerEmailAddress": "email@your_organization.com",
  "SessionOwnerTitle": null,
  "CreatedBy": "KRyan",
  "CreationDate": "2017-02-21T06:07:55+00:00",
  "LastUpdateDate": "2017-02-21T06:07:55+00:00",
  "LastUpdateLogin": "4904EDC6284F3784E0533DD7F00A5CB2",
  "LastUpdatedBy": "KRyan",
  "TotalSessionDisplayDuration": null,
  "DeleteFlag": true,
  "UpdateFlag": true,
  "links": [
  	...
]
}

Create a Lightbox presentation session without referencing an appointment activity

cURL Command

curl --user sales_cloud_user -X POST -d @example_request_payload.json https://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/presentationSessions

Example of Response Body

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

{
  "PresentationSessionId": 300100089786735,
  "SessionDate": "2017-02-21T05:48:17+00:00",
  "ActivityId": null,
  "ActivitySubject": null,
  "ActivityNumber": null,
  "AccountId": null,
  "AccountName": null,
  "AccountPartyNumber": null,
  "ActivityAccountId": null,
  "ActivityAccountName": null,
  "ActivityAccountPartyNumber": null,
  "SessionOwnerId": 100010032752947,
  "SessionOwnerName": "Ryan,Katy",
  "SessionOwnerEmailAddress": "CEO.CRM+TM39@your_organization.com",
  "SessionOwnerTitle": null,
  "CreatedBy": "KRyan",
  "CreationDate": "2017-02-21T05:48:27+00:00",
  "LastUpdateDate": "2017-02-21T05:48:27+00:00",
  "LastUpdateLogin": "4904EDC6284F3784E0533DD7F00A5CB2",
  "LastUpdatedBy": "KRyan",
  "TotalSessionDisplayDuration": null,
  "DeleteFlag": true,
  "UpdateFlag": true,
  "links": [
	....
  		]
}
Back to Top