{"uid":"cap_6boR1bn99XCoRK55EjZ75","slug":"zerohost-evmoore-workers-dev-put-d-id-zerohost-full-replace-deploy-f2d84e82","name":"PUT /d/{id} — Zerohost Full Replace Deploy","description":"","url":"https://zerohost.evmoore.workers.dev/d/{id}?utm_source=zero.xyz","method":"PUT","headers":{},"bodySchema":null,"responseSchema":{"type":"object"},"example":null,"exampleRequest":null,"tags":[],"displayCostAmount":"unknown","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"unknown_unparsed","priceSource":"registry","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"unknown","summary":"price unknown","primary":{"kind":"unknown","protocol":"mpp","network":"tempo","amountUsd":null,"per":"call","confidence":"unknown"},"accepted":[{"kind":"unknown","protocol":"mpp","network":"tempo","amountUsd":null,"per":"call","confidence":"unknown"}]},"paymentMethods":[{"uid":"pm_HnvvCsVfJSSqpx7RWs0wv","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"unknown","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":"zerohost.evmoore.workers.dev","brandSlug":"zerohost-evmoore-workers-dev-mpp","brandBaseUrl":"https://zerohost.evmoore.workers.dev","brandDocsUrl":null,"whatItDoes":"Fully replaces (PUT) an existing disposable HTTPS backend deployment by ID on Zerohost","exampleAgentPrompt":"I updated my Node.js app — can you replace the existing Zerohost deploy with ID 'abc123' by uploading my new app.zip so the live URL immediately serves the updated code?","exampleUseCases":[{"title":"Swap backend code without URL changes","prompt":"I've fixed a bug in my Python API. Can you replace the code on my existing Zerohost deployment (ID 'prod-api-v1') with this updated zip file, keeping the same live URL so clients don't notice any downtime?"},{"title":"Push new experimental feature live","prompt":"I want to test a new payment flow on my running temporary backend. Can you fully replace the code on my Zerohost slot (ID 'payment-sandbox-2') with my latest version so the ephemeral HTTPS URL starts serving the new feature right away?"},{"title":"Redeploy after dependency update","prompt":"My Bun backend dependencies are now up to date. Can you swap out the code on my existing Zerohost deployment (ID 'worker-123') by uploading my new app.zip, so the live endpoint immediately runs the refreshed version without changing the URL?"}],"resultDescription":"Returns a JSON object confirming the full replacement of the deployment, including updated status and the TTL'd HTTPS URL serving the new code.","failureModes":["Deploy ID not found — 404 if the specified {id} does not exist","Invalid zip archive — 400 if the uploaded file is not a valid zip or missing zerohost.json manifest","Payment failure — 402 if USDC payment is not provided or insufficient","Runtime not supported — 400 if the manifest specifies an unsupported runtime","Expired deployment — 404 or 410 if the TTL has already elapsed","Oversized bundle — 413 if the zip exceeds size limits"],"whenToPreferThis":"Use this endpoint when you need to fully replace the code of an existing Zerohost deployment (identified by ID) rather than creating a new one. Prefer PUT over PATCH when doing a complete code swap, and prefer it over POST /d/{id} when semantically you want idempotent full replacement. Ideal when the deployment slot already exists and you want the same URL to serve entirely new code.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T18:39:05.735Z","isFirstParty":false,"canonicalSlug":"zerohost-evmoore-workers-dev-put-d-id-zerohost-full-replace-deploy-f2d84e82"}