Skip to content

Commit f24ef46

Browse files
Merge pull request #325 from JulienPalard/mdk-doc
FIX documentation: it's not a post, it's a patch to upload a product image
2 parents 1e10a52 + 7963705 commit f24ef46

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/source/topics/the_admin_api.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ know the current API url or you only know the product ``upc``.
3434

3535
Suppose we know the full url then it can be done like this::
3636

37-
session.post(
37+
session.patch(
3838
"http://127.0.0.1:8000/oscarapi/admin/products/1/",
3939
json={
4040
"images": [{
@@ -51,7 +51,7 @@ Suppose you don't know the url in the API, you'd have to know some unique attrib
5151
for example, the UPC. You can just use the product list API and if you send
5252
enough data to uniquely identify the product, it will succeed::
5353

54-
session.post(
54+
session.patch(
5555
"http://127.0.0.1:8000/oscarapi/admin/products/",
5656
json={
5757
"upc": "1_5_1",

0 commit comments

Comments
 (0)