Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 8779518

Browse files
committed
Add product edit endpoint
1 parent da867f0 commit 8779518

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/Api/Products.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,16 @@ public function show($sku)
3131
{
3232
return $this->get('/products/'.$sku);
3333
}
34+
35+
/**
36+
* Edit product.
37+
*
38+
* @param string $sku
39+
* @param array $body
40+
* @return array
41+
*/
42+
public function edit($sku, $body = [])
43+
{
44+
return $this->put('/products/'.$sku, $body);
45+
}
3446
}

0 commit comments

Comments
 (0)