2 parents 2b38279 + e82f2db commit 5785189Copy full SHA for 5785189
1 file changed
src/Traits/PageItems.php
@@ -90,12 +90,13 @@ public function getById($id)
90
91
/**
92
* Delete a single item from the collection
93
- * @param $id
+ * @param string $id
94
+ * @param null|array<string, mixed> $body
95
* @return bool
96
*/
- public function deleteById($id)
97
+ public function deleteById($id, $body = null)
98
{
- $response = $this->delete($this->collectionPath . '/' . $id);
99
+ $response = $this->delete($this->collectionPath . '/' . $id, $body);
100
return $response->getStatusCode() == 204;
101
}
102
0 commit comments