Method: Utils::BlockComponents.update_codeblock_language
- Defined in:
- lib/notion_api/utils.rb
.update_codeblock_language(block_id, coding_language) ⇒ Object
298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 |
# File 'lib/notion_api/utils.rb', line 298 def self.update_codeblock_language(block_id, coding_language) # ! update the language for a codeblock # ! block_id -> id of the code block # ! coding_language -> language to change the block to. table = "block" path = ["properties"] command = "update" { id: block_id, table: table, path: path, command: command, args: { language: [[coding_language]], }, } end |