368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
|
# File 'lib/notion_api/utils.rb', line 368
def self.create_collection_view(new_block_id, collection_id, view_ids)
table = "block"
command = "update"
path = []
type = "collection_view"
properties = {}
timestamp = DateTime.now.strftime("%Q")
{
id: new_block_id,
table: table,
path: path,
command: command,
args: {
id: new_block_id,
type: type,
collection_id: collection_id,
view_ids: [
view_ids,
],
properties: properties,
created_time: timestamp,
last_edited_time: timestamp,
},
}
end
|