{"uid":"cap_yeS91pWvfaUqhFS5-zvsv","slug":"host-withzero-ai-replace-hosted-site-content-host-withzero-ai-32b81db6","name":"Replace Hosted Site Content (host.withzero.ai)","description":"Replace the content of an existing slug. Owner-only. Refreshes the TTL if `ttlHours` is supplied; otherwise preserves the existing one.","url":"https://host.withzero.ai/sites/:slug?utm_source=zero.xyz","method":"PUT","headers":{},"bodySchema":{"type":"object","required":["content"],"properties":{"content":{"type":"string","maxLength":2000000,"minLength":1},"ttlHours":{"type":"number","maximum":4320,"minimum":0.5}},"additionalProperties":false},"responseSchema":{"type":"object"},"example":null,"exampleRequest":null,"tags":[],"displayCostAmount":"0","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"proven_free","priceSource":"registry","requiresHandshake":false,"reviewCount":1,"rating":{"score":"1.00","successRate":"1.00","reviews":1,"stars":"5.0","state":"rated"},"availabilityStatus":"healthy","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"metered","summary":"metered — billed by usage","primary":{"kind":"metered","protocol":"mpp","network":"tempo","amountUsd":null,"per":"call","confidence":"unknown"},"accepted":[{"kind":"metered","protocol":"mpp","network":"tempo","amountUsd":null,"per":"call","confidence":"unknown"}]},"paymentMethods":[{"uid":"pm_zm1CtJcRkAdA9oJMDSsHZ","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"0","costPer":"request","priority":0,"asset":"0x20C000000000000000000000b9537d11c60E8b50","unit":"request","depositMicros":null,"planRef":"host-site-put-sites-slug:1"}],"brandName":"host.withzero.ai","brandSlug":"host-withzero-ai-mpp","brandBaseUrl":"https://host.withzero.ai","brandDocsUrl":null,"whatItDoes":"Replaces the content of an existing hosted static site slug with new content, optionally refreshing its TTL; owner-only operation.","exampleAgentPrompt":"Update my hosted site at slug 'my-portfolio' with this new HTML content: '<html><body><h1>Updated Portfolio</h1></body></html>', and set the TTL to 48 hours.","exampleUseCases":[{"title":"Push updated landing page content","prompt":"I've made changes to my landing page — can you replace the content at my 'launch-page' slug with this new HTML: '<html><body><h1>We are live!</h1></body></html>' and keep it up for 72 hours?"},{"title":"Refresh expiring hosted site","prompt":"My hosted site at slug 'promo-2024' is about to expire — update its content with the latest HTML I have and extend the TTL to 168 hours so it stays live for a week."},{"title":"Hotfix a live site's content","prompt":"There's a typo on my live site — please overwrite the content at slug 'docs-site' with this corrected HTML: '<html><body><p>Corrected content here.</p></body></html>' right away, keep the existing expiry."}],"resultDescription":"Returns an object confirming the update, typically including the slug and updated metadata for the hosted site.","failureModes":["403 Forbidden if the caller is not the owner of the slug","404 Not Found if the slug does not exist","400 Bad Request if content is empty or exceeds 2,000,000 characters","400 Bad Request if ttlHours is outside the range 0.5–4320","Authentication/wallet verification failure if caller identity cannot be confirmed"],"whenToPreferThis":"Use this endpoint when you need to update or overwrite the content of a site slug that already exists on host.withzero.ai, rather than deleting and re-uploading. Prefer this over the upload endpoint when the slug is already registered to your wallet and you want to preserve the slug identity, optionally refreshing its TTL at the same time.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":4,"lastUsedAt":"2026-10-02T21:38:03.808Z","lastSuccessfullyRanAt":"2026-10-02T21:38:03.808Z","lastHealthCheckAt":"2026-10-02T22:56:06.042Z","isFirstParty":true,"canonicalSlug":"host-withzero-ai-replace-hosted-site-content-host-withzero-ai-32b81db6"}