Update a project
Update project settings or replace content while keeping the hostname.
/v1/upload
Try it Live request
PUT https://ext.tiiny.host/v1/upload
Your key is sent directly to Tiiny Host with the request. This page clears the key when you leave.
Side effect. Sending content files replaces the project’s existing files. Send the complete file set, including assets that should still be served. Settings-only and image-only updates to an owned project keep its files. Fetch the project’s subdomain first; a missing or unused domain with files can create a new project.
Authentication
Send the x-api-key header. The target project must belong to the authenticated account.
Request
Send multipart/form-data. Use the same fields as Create a project. For an update, set domain to the existing project’s hostname. Repeat files once per file when replacing content. To keep the existing files, omit them and send a nonempty settings change or an image part. The API detects updates by hostname. Omit isUpdate from the request.
Explore Projects for individual workflows, including access control, search indexing, visitor comments, link appearance, and custom domains.
Example
curl --fail-with-body -X PUT https://ext.tiiny.host/v1/upload \
-H "x-api-key: $TIINY_API_KEY" \
-F 'domain=example.tiiny.site' \
-F 'files=@site.zip'
Success response
200 OK returns the same response shapes as Create a project. Use the returned hostname and inspect the preview flag before treating the result as permanent.
Errors
400for an invalid hostname or missing or empty files.401for a missing key or an attempt to update a project owned by another account.403for a key without API access, orCUSTOM_DOMAIN_NOT_OWNEDfor a custom domain that is not connected to your account.413for file or storage limits. Updates to projects you own are exempt from the upload controller’s new-project count checks.429withRATE_LIMIT_EXCEEDED.
See Errors and limits for error envelopes.