docs: add endpoints for story creation and editing#4
Draft
ZhiFenBL wants to merge 1 commit into
Draft
Conversation
Co-authored-by: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Document Wattpad write & edit endpoints
Summary
This PR expands the documentation beyond read-only endpoints to cover Wattpad's write and edit surface — story creation, part editing, tagging, media uploads, and the modern token-based authentication flow used by the Android app. It adds 24 new endpoint pages, 11 new data types, and updates several existing docs with newly discovered fields and parameters.
Because Wattpad's write operations largely run on the legacy
apiv2architecture (rather than thev3/v4/v5REST APIs used for reads), this PR also documents the conventions that come with it —application/x-www-form-urlencodedbodies, and unnumberederror/error_countfailure responses instead of the standard numbered error codes.What's included
Write / Edit endpoints (legacy
apiv2)POST /apiv2/newstory) — create a new story group + first part, or append a part to an existing groupPOST /apiv2/editstory) — update a part's text, title, and inline mediaPOST /apiv2/editstorygroup) — update story metadata and part orderingPOST /apiv2/editstorytags) — add/replace a story's tagsPOST /apiv2/deletestorygroup) — delete a story and all its partsPOST /apiv2/updatestorycover) — Base64/form-encoded cover uploadWrite endpoints (REST + writing service)
PUT /api/v3/story_parts/{id}) — publish/unpublish a partPOST /v5/media/...) —multipart/form-dataimage uploads/v5/image_moderation/result) — confirm an uploaded image cleared moderation/writing/v1/.../polls) — read and create part pollsAuthoring & discovery reads
Data types
Added:
Session,GA,Media_Upload,Poll,Poll_Option,Taxonomy,Genre,Sub_Genre,Fandom.Updated:
Story(addedstory_text_url, paywall/rating/badge fields),Part(addedhash,wordCount,dedication,scheduledPublishDatetime),Language(addedenName,locale,code,categories).Updates to existing docs
If-None-Match/ ETag) requestsdraftsparam, and bulk text downloadapi.wattpad.comhost and new fields; Blocks — noted auth requirementNotes for reviewers
URL/Fields/Special Syntax/Error Codes/Example Usage).