chore(docs): merge changes from master (#3780)
* chore(docs): Generated API Reference (#3761) Co-authored-by: shahednasser <shahednasser@users.noreply.github.com> * docs: fix typo (#3771) --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: shahednasser <shahednasser@users.noreply.github.com> Co-authored-by: Andre Schweighofer <fidrelity@users.noreply.github.com>
This commit is contained in:
@@ -1,3 +1,2 @@
|
||||
curl --location --request GET 'https://medusa-url.com/admin/inventory-items' \
|
||||
--header 'Authorization: Bearer {api_token}' \
|
||||
--header 'Content-Type: application/json'
|
||||
--header 'Authorization: Bearer {api_token}'
|
||||
|
||||
@@ -3,5 +3,4 @@ curl --location --request POST 'https://medusa-url.com/admin/inventory-items' \
|
||||
--header 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"variant_id": "variant_123",
|
||||
"sku": "sku-123",
|
||||
}'
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
curl --location --request GET 'https://medusa-url.com/admin/inventory-items/{id}' \
|
||||
--header 'Authorization: Bearer {api_token}' \
|
||||
--header 'Content-Type: application/json'
|
||||
--header 'Authorization: Bearer {api_token}'
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
curl --location --request GET 'https://medusa-url.com/admin/inventory-items/{id}/location-levels' \
|
||||
--header 'Authorization: Bearer {api_token}' \
|
||||
--header 'Content-Type: application/json'
|
||||
--header 'Authorization: Bearer {api_token}'
|
||||
|
||||
@@ -2,6 +2,6 @@ curl --location --request POST 'https://medusa-url.com/admin/inventory-items/{id
|
||||
--header 'Authorization: Bearer {api_token}' \
|
||||
--header 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"location_id": "sloc",
|
||||
"location_id": "sloc_123",
|
||||
"stocked_quantity": 10
|
||||
}'
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
curl --location --request DELETE 'https://medusa-url.com/admin/inventory-items/{id}/location-levels/{location_id}' \
|
||||
--header 'Authorization: Bearer {api_token}' \
|
||||
--header 'Content-Type: application/json'
|
||||
--header 'Authorization: Bearer {api_token}'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
curl --location --request POST 'https://medusa-url.com/admin/orders/{id}/line-items/{line_item_id}/reservations' \
|
||||
curl --location --request POST 'https://medusa-url.com/admin/orders/{id}/line-items/{line_item_id}/reserve' \
|
||||
--header 'Authorization: Bearer {api_token}' \
|
||||
--header 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
curl --location \
|
||||
--request POST 'https://medusa-url.com/admin/product-categories/{product_category_id}/products/batch' \
|
||||
--request POST 'https://medusa-url.com/admin/product-categories/{id}/products/batch' \
|
||||
--header 'Authorization: Bearer {api_token}' \
|
||||
--header 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
|
||||
@@ -2,7 +2,8 @@ curl --location --request POST 'https://medusa-url.com/admin/reservations' \
|
||||
--header 'Authorization: Bearer {api_token}' \
|
||||
--header 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"resource_id": "{resource_id}",
|
||||
"resource_type": "order",
|
||||
"value": "We delivered this order"
|
||||
"line_item_id": "item_123",
|
||||
"location_id": "loc_123",
|
||||
"inventory_item_id": "iitem_123",
|
||||
"quantity": 1
|
||||
}'
|
||||
|
||||
@@ -2,5 +2,5 @@ curl --location --request DELETE 'https://medusa-url.com/admin/sales-channels/{i
|
||||
--header 'Authorization: Bearer {api_token}' \
|
||||
--header 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"locaton_id": "stock_location_id"
|
||||
"locaton_id": "loc_id"
|
||||
}'
|
||||
|
||||
@@ -2,5 +2,5 @@ curl --location --request POST 'https://medusa-url.com/admin/sales-channels/{id}
|
||||
--header 'Authorization: Bearer {api_token}' \
|
||||
--header 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"locaton_id": "stock_location_id"
|
||||
"locaton_id": "loc_123"
|
||||
}'
|
||||
|
||||
@@ -2,5 +2,5 @@ curl --location --request POST 'https://medusa-url.com/admin/stock-locations/{id
|
||||
--header 'Authorization: Bearer {api_token}' \
|
||||
--header 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"name": "App"
|
||||
"name": "Main Warehouse"
|
||||
}'
|
||||
|
||||
Reference in New Issue
Block a user