docs(apify-actor-development): document REST deploy path (PUT versions with JSON sourceFiles)#71
Draft
DaveHanns wants to merge 1 commit into
Draft
Conversation
…s with JSON sourceFiles)
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.
Rationale
When
apify-cliisn't available (API-only or MCP-only workflows), agents attempting to deploy Actor source via REST hit two silent pitfalls:PUT /v2/acts/{id}/versions/{ver}/source-filestarball endpoint is documented but currently 4xx's on any payload shape.?overwrite=trueor?force=1don't exist — overwrite semantics are governed by the HTTP verb (POSTto create,PUTto overwrite).The correct path is
PUT /v2/acts/{actorId}/versions/{versionNumber}with a JSON body describing files viasourceType+ inlinesourceFiles(base64 for binaries, plain text for text files). This addition documents that path directly in the actor-development skill so agents pick the working endpoint on the first try.Added content (preview)
Surfaced during an evaluation of Apify surfaces for agent-driven Actor development.