From 4f0c06771de6e01aee5ce13f81adbff7351e621d Mon Sep 17 00:00:00 2001 From: Jezza Hehn Date: Sat, 18 Apr 2026 02:59:16 +0000 Subject: [PATCH] docs: fix WRAPPERS.md replacement examples - update_post wrapper example now uses correct parameters (post_text, post_path) - create_comment wrapper example shows post_key parameter option --- docs/WRAPPERS.md | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/docs/WRAPPERS.md b/docs/WRAPPERS.md index d6953fd..2b070c8 100644 --- a/docs/WRAPPERS.md +++ b/docs/WRAPPERS.md @@ -426,33 +426,36 @@ API.run_job('post.create', { ```python # Wrapper API.wrapped(update_post( - post_id="current-pk-same-as-sk", - new_post_text="New content" + post_text="New content", + post_path="my-post-slug", + parent_path="/music" )) # Job API.run_job('post.update', { - "pk": "current-pk-same-as-sk", - "sk": "current-pk-same-as-sk", - "newPostText": "New content" + "key": { + "pk": "post#my-post-slug", + "sk": "post#my-post-slug" + }, + "postText": "New content" }) ``` **Example 3: Create Comment** ```python -# Wrapper +# Wrapper - Using post_key API.wrapped(create_comment( "My comment", - parent_path="/post-id" + post_key={"pk": "post#123", "sk": "post#123"} )) # Job API.run_job('comment.create', { "commentText": "My comment", "parent": { - "pk": "post-id", - "sk": "post-id" + "pk": "post#123", + "sk": "post#123" } }) ```