We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 782bb84 commit 9cb00d8Copy full SHA for 9cb00d8
src/Endpoints/Block.php
@@ -81,7 +81,7 @@ public function children(): BlockCollection
81
*
82
* @throws HandlingException
83
*/
84
- public function append($appendices): BlockEntity
+ public function append($appendices, $after = ""): BlockEntity
85
{
86
if (! is_array($appendices) && ! $appendices instanceof BlockEntity) {
87
throw new HandlingException('$appendices must be an array or instance of BlockEntity');
@@ -104,6 +104,10 @@ public function append($appendices): BlockEntity
104
'children' => $children,
105
];
106
107
+ if ($after) {
108
+ $body['after'] = $after;
109
+ }
110
+
111
$response = $this->patch(
112
$this->url(Endpoint::BLOCKS.'/'.$this->blockId.'/children'.''),
113
$body
0 commit comments