Declare X-Stock-Change-Reason as a proper header parameter
The tool argument name Kong actually forwards comes from the operation's declared parameters — a header cannot be sent as an arbitrary argument name, it has to be in the spec like any other parameter. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -288,7 +288,8 @@ config:
|
|||||||
idempotent_hint: false
|
idempotent_hint: false
|
||||||
destructive_hint: false
|
destructive_hint: false
|
||||||
open_world_hint: false
|
open_world_hint: false
|
||||||
description: Update specific fields of an existing product.
|
description: Update specific fields of an existing product. Send X-Stock-Change-Reason as delivery:<id>
|
||||||
|
when a quantityinstock change is a fulfilled reorder rather than a correction.
|
||||||
method: PATCH
|
method: PATCH
|
||||||
name: patch-product
|
name: patch-product
|
||||||
parameters:
|
parameters:
|
||||||
@@ -298,6 +299,13 @@ config:
|
|||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
- description: 'Only honoured in this one shape: delivery:<reorder-id>. Anything else is recorded
|
||||||
|
as a manual adjustment.'
|
||||||
|
in: header
|
||||||
|
name: X-Stock-Change-Reason
|
||||||
|
required: false
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
path: /catalog/v1/products/{productcode}/
|
path: /catalog/v1/products/{productcode}/
|
||||||
request_body:
|
request_body:
|
||||||
content:
|
content:
|
||||||
|
|||||||
+8
-1
@@ -271,7 +271,7 @@ paths:
|
|||||||
/catalog/v1/products/{productcode}/:
|
/catalog/v1/products/{productcode}/:
|
||||||
patch:
|
patch:
|
||||||
operationId: patch_product
|
operationId: patch_product
|
||||||
description: Update specific fields of an existing product.
|
description: Update specific fields of an existing product. Send X-Stock-Change-Reason as delivery:<id> when a quantityinstock change is a fulfilled reorder rather than a correction.
|
||||||
summary: Partially update a product
|
summary: Partially update a product
|
||||||
parameters:
|
parameters:
|
||||||
- in: path
|
- in: path
|
||||||
@@ -280,6 +280,13 @@ paths:
|
|||||||
type: string
|
type: string
|
||||||
description: A unique value identifying this product.
|
description: A unique value identifying this product.
|
||||||
required: true
|
required: true
|
||||||
|
- in: header
|
||||||
|
name: X-Stock-Change-Reason
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
pattern: '^delivery:[\w-]{1,64}$'
|
||||||
|
description: 'Only honoured in this one shape: delivery:<reorder-id>. Anything else is recorded as a manual adjustment.'
|
||||||
|
required: false
|
||||||
tags:
|
tags:
|
||||||
- Products
|
- Products
|
||||||
requestBody:
|
requestBody:
|
||||||
|
|||||||
Reference in New Issue
Block a user