Skip to content

Commit

Permalink
Added code example (#1890)
Browse files Browse the repository at this point in the history
  • Loading branch information
mehicalen authored May 14, 2024
1 parent 4d266b3 commit 61a4d8b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const data = {
quantityFilled: 4,
};

const subscription = await api.subscription.updateItem({
id: "subscription-id",
itemId: "item-id",
data,
});
4 changes: 4 additions & 0 deletions openapi/paths/subscriptions@{id}@items@{itemId}.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,7 @@ patch:
$ref: ../components/responses/ValidationError.yaml
'429':
$ref: ../components/responses/TooManyRequests.yaml
x-codeSamples:
- lang: JavaScript
source:
$ref: "../code_samples/JavaScript/subscriptions@{id}@items@{itemId}/patch.js"

0 comments on commit 61a4d8b

Please sign in to comment.