Create a Lightbox presentation session attendance event
post
/crmRestApi/resources/11.13.18.05/presentationSessions/{PresentationSessionId}/child/sessionAttendanceEvents
Request
Path Parameters
-
PresentationSessionId(required): string
The unique identifier of the Lightbox presentation session.
Header Parameters
-
Effective-Of: string
This header accepts a string value. The string is a semi-colon separated list of
= . It is used to perform effective date range operations. The accepted parameters are RangeMode, RangeSpan, RangeStartDate, RangeEndDate, RangeStartSequence and RangeEndSequence. The parameter values are always strings. The possible values for RangeMode are SET_LOGICAL_START, SET_LOGICAL_END, END_DATE, SET_EFFECTIVE_START, SET_EFFECTIVE_END, REPLACE_CORRECTION, REPLACE_UPDATE, RECONCILE_CORRECTION, CORRECTION, RECONCILE_UPDATE, UPDATE, ZAP and DELETE_CHANGES. The possible values for RangeSpan are PHYSICAL_ROW_END_DATE and LOGICAL_ROW_END_DATE. The values for RangeStartDate and RangeEndDate have to be a string representation of a date in yyyy-MM-dd format. The value for RangeStartSequence and RangeEndSequence must be strings such that when parsed they yield positive integers. -
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.
Supported Media Types
- application/json
Root Schema : schema
Type:
Show Source
object-
AttendanceEventId: integer
(int64)
Title:
Attendance Event IDThe unique identifier of the attendance event. -
AttendanceEventStartTime: string
(date-time)
Title:
Attendance Event Start TimeThe start time for the attendance event. -
AttendanceEventStopTime: string
(date-time)
Title:
Attendance Event Stop TimeThe stop time for the attendance event. -
AttendeeId: integer
(int64)
Title:
Attendee IDThe unique identifier of the attendee. -
ContactId: integer
Title:
Contact IDThe unique identifier of the contact. -
LightboxDocumentId: string
Title:
Document IDMaximum Length:64The unique identifier of the Lightbox document. -
LightboxDocumentPageId: string
Title:
Document Page IDThe unique identifier of the Lightbox document page. The value is obtained from LightboxDocumentId, DocumentVersion and PageSequenceNumber unless specified during create. -
LightboxDocumentVersion: string
Title:
VersionMaximum Length:64The version of the Lightbox document. -
PageSequenceNumber: integer
(int32)
Title:
Page Sequence NumberThe page sequence number of the Lightbox document page. -
PresentationSessionId: string
Title:
Session IDMaximum Length:1000The unique identifier of the presentation session.
Response
Supported Media Types
- application/json
Default Response
The following table describes the default response for this task.
Headers
-
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.
Root Schema : presentationSessions-sessionAttendanceEvents-item-response
Type:
Show Source
object-
AttendanceEventId: integer
(int64)
Title:
Attendance Event IDThe unique identifier of the attendance event. -
AttendanceEventStartTime: string
(date-time)
Title:
Attendance Event Start TimeThe start time for the attendance event. -
AttendanceEventStopTime: string
(date-time)
Title:
Attendance Event Stop TimeThe stop time for the attendance event. -
AttendeeId: integer
(int64)
Title:
Attendee IDThe unique identifier of the attendee. -
ContactId: integer
Title:
Contact IDThe unique identifier of the contact. -
ContactName: string
Title:
ContactRead Only:trueMaximum Length:450The name of the contact for the attendance event. -
ContactPartyNumber: string
Title:
Party NumberRead Only:trueMaximum Length:30The party number of the contact. -
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. -
LightboxDocumentPageId: string
Title:
Document Page IDThe unique identifier of the Lightbox document page. The value is obtained from LightboxDocumentId, DocumentVersion and PageSequenceNumber unless specified during create. -
LightboxDocumentVersion: string
Title:
VersionMaximum Length:64The version of the Lightbox document. -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
PageSequenceNumber: integer
(int32)
Title:
Page Sequence NumberThe page sequence number of the Lightbox document page. -
PresentationSessionId: string
Title:
Session IDMaximum Length:1000The unique identifier of the presentation session.
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Nested Schema : link
Type:
Show Source
object-
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.
Nested Schema : properties
Type:
Show Source
object-
changeIndicator: string
Change indicator or the ETag value of the resource instance.
Examples
The following example shows how to create a Lightbox presentation session attendance event by submitting a POST request on the REST resource using cURL.
cURL Command
curl -u <username:password> \ -X POST -d
@example_request_payload.json https://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/presentationSessions/300100110457468/child/sessionAttendanceEvents
Example of Request Body
The following shows an example of the request body in JSON format.
{
"ContactId":300100049609065,
"LightboxDocumentId":"bc6c78fa-556a-4d31-86c1-0b522f539333",
"PageSequenceNumber":4,
"AttendanceEventStartTime":"2017-02-21T04:38:09",
"AttendanceEventStopTime":"2017-02-21T04:49:20"
}
Example of Response Body
The following example shows the contents of the response body in JSON format.
{
"AttendanceEventId": 300100110471422,
"PresentationSessionId": "300100110457468",
"AttendeeId": 300100110457879,
"ContactId": 300100049609065,
"LightboxDocumentId": "bc6c78fa-556a-4d31-86c1-0b522f539333",
"LightboxDocumentPageId": "d1a5d658-49bd-4961-ad3c-4ccfd748bfcd",
"LightboxDocumentVersion": "1",
"PageSequenceNumber": 4,
"AttendanceEventStartTime": "2017-02-20T20:38:09-08:00",
"AttendanceEventStopTime": "2017-02-20T20:49:20-08:00",
"ContactName": "Nicolas Cage",
"ContactPartyNumber": "CDRM_79483",
"CreatedBy": "KRyan",
"CreationDate": "2017-02-21T02:41:11-08:00",
"LastUpdateDate": "2017-02-21T02:41:17-08:00",
"LastUpdateLogin": "4904BE299F5E24C4E053780CF10A4363",
"LastUpdatedBy": "KRyan",
"links":
...
}