Class: HubSpotSDK::Resources::WebhooksJournal::Snapshots
- Inherits:
-
Object
- Object
- HubSpotSDK::Resources::WebhooksJournal::Snapshots
- Defined in:
- lib/hubspot_sdk/resources/webhooks_journal/snapshots.rb
Instance Method Summary collapse
-
#create(snapshot_requests:, request_options: {}) ⇒ HubSpotSDK::Models::CrmObjectSnapshotBatchResponse
Some parameter documentations has been truncated, see Models::WebhooksJournal::SnapshotCreateParams for more details.
-
#initialize(client:) ⇒ Snapshots
constructor
private
A new instance of Snapshots.
Constructor Details
#initialize(client:) ⇒ Snapshots
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Snapshots.
38 39 40 |
# File 'lib/hubspot_sdk/resources/webhooks_journal/snapshots.rb', line 38 def initialize(client:) @client = client end |
Instance Method Details
#create(snapshot_requests:, request_options: {}) ⇒ HubSpotSDK::Models::CrmObjectSnapshotBatchResponse
Some parameter documentations has been truncated, see Models::WebhooksJournal::SnapshotCreateParams for more details.
Create a batch of CRM object snapshots in HubSpot. This endpoint is used to capture the current state of specified CRM objects for later reference or analysis. It requires a JSON payload containing the details of the CRM objects to snapshot. This operation is exempt from daily and ten-secondly rate limits.
24 25 26 27 28 29 30 31 32 33 |
# File 'lib/hubspot_sdk/resources/webhooks_journal/snapshots.rb', line 24 def create(params) parsed, = HubSpotSDK::WebhooksJournal::SnapshotCreateParams.dump_request(params) @client.request( method: :post, path: "webhooks-journal/snapshots/2026-03/crm", body: parsed, model: HubSpotSDK::CrmObjectSnapshotBatchResponse, options: ) end |