{"openapi":"3.1.0","info":{"title":"Soartana Hosting deploy API","version":"1.0.0","description":"Publish static sites: create a deploy from a manifest, PUT each file to its presigned URL with the returned headers, finalize, promote. 120 requests per minute per key."},"servers":[{"url":"https://api.soartana.com"}],"externalDocs":{"url":"https://app.soartana.com/docs/developer/hosting/v1/quickstart"},"security":[{"siteApiKey":[]}],"components":{"securitySchemes":{"siteApiKey":{"type":"http","scheme":"bearer","description":"A site API key (shk_...), shown once when created."}},"schemas":{"ErrorEnvelope":{"type":"object","properties":{"success":{"const":false},"message":{"type":"string"},"error_code":{"type":"string","description":"Stable code to branch on. Each operation's error responses name the codes it can answer with.","examples":["HTTP_ERROR","UNAUTHENTICATED","HOSTING_DEPLOY_NOT_FOUND","HOSTING_DEPLOY_NOT_UPLOADING","HOSTING_DEPLOY_NOT_READY","HOSTING_DEPLOY_IS_PREVIEW","HOSTING_SITE_IN_ARCH_TRASH","VALIDATION_ERROR","HOSTING_MANIFEST_INVALID","HOSTING_DEPLOY_TOO_LARGE","HOSTING_TOO_MANY_PENDING","HOSTING_DEPLOY_INCOMPLETE","RATE_LIMIT_EXCEEDED","INTERNAL_ERROR","CONFLICT","RETRYABLE"]},"errors":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}},"errors_note":{"type":"string"}},"required":["success","message"]}}},"paths":{"/api/public/hosting/v1/site":{"get":{"operationId":"getSite","summary":"The key's site with its production deploy and the domains pointed at it","externalDocs":{"url":"https://app.soartana.com/docs/developer/hosting/v1/api"},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"publication_receipt":{"anyOf":[{"type":"object","properties":{"event_id":{"type":"string","format":"uuid"},"origin_product":{"type":"string","enum":["formlab","arch","hosting"]}},"required":["event_id","origin_product"]},{"type":"null"}]},"id":{"type":"string","format":"uuid"},"slug":{"type":"string"},"name":{"type":"string"},"status":{"type":"string","enum":["active","archived"]},"production_deploy_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"last_published_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"primary_domain":{"anyOf":[{"type":"object","properties":{"hostname":{"type":"string"},"status":{"type":"string","enum":["pending","verified","failed","removed"]},"cert_status":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["hostname","status","cert_status"]},{"type":"null"}]},"arch_site_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"default_url":{"type":"string"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"production_deploy":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"site_id":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["uploading","ready","failed","discarded"]},"source":{"type":"string","enum":["upload","api","arch"]},"file_count":{"type":"integer"},"byte_size":{"type":"integer"},"created_by":{"type":"string","format":"uuid"},"created_at":{"type":"string"},"finalized_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"failed_reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"is_production":{"type":"boolean"},"preview_url":{"type":"string"},"preview":{"type":"boolean"}},"required":["id","site_id","status","source","file_count","byte_size","created_by","created_at","finalized_at","failed_reason","is_production","preview_url"]},{"type":"null"}]},"domains":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"hostname":{"type":"string"},"kind":{"type":"string","enum":["apex","subdomain"]},"status":{"type":"string","enum":["pending","verified","failed","removed"]},"failure_reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"target_type":{"type":"string","enum":["none","forms","site","email","portal","tracking","members"]},"target_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"cert_status":{"anyOf":[{"type":"string"},{"type":"null"}]},"records":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["TXT","CNAME"]},"name":{"type":"string"},"value":{"type":"string"},"purpose":{"type":"string","enum":["ownership","routing"]},"status":{"type":"string","enum":["pending","ok","failed"]},"checked_at":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["type","name","value","purpose","status","checked_at"]}},"verified_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"last_checked_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"created_at":{"type":"string"}},"required":["id","hostname","kind","status","failure_reason","target_type","target_id","cert_status","records","verified_at","last_checked_at","created_at"]}},"primary_domain_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]}},"required":["id","slug","name","status","production_deploy_id","default_url","created_at","updated_at","production_deploy","domains"]}},"required":["success","message","data"]}}}},"401":{"description":"UNAUTHENTICATED: Missing, unknown or revoked key, or its site, workspace, creator seat or hosting plan is no longer active. No further detail is given.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: More than 120 requests in a minute with one key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"INTERNAL_ERROR: Something failed on Soartana's side. Retry with backoff; a deploy that was not created or finalized is safe to start again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"RETRYABLE: Soartana was briefly busy with a conflicting change. Nothing was saved: wait the seconds in the Retry-After header, then repeat the same call.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/public/hosting/v1/deploys":{"get":{"operationId":"listDeploys","summary":"The site's 50 newest deploys, newest first","externalDocs":{"url":"https://app.soartana.com/docs/developer/hosting/v1/api"},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"const":true},"message":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"site_id":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["uploading","ready","failed","discarded"]},"source":{"type":"string","enum":["upload","api","arch"]},"file_count":{"type":"integer"},"byte_size":{"type":"integer"},"created_by":{"type":"string","format":"uuid"},"created_at":{"type":"string"},"finalized_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"failed_reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"is_production":{"type":"boolean"},"preview_url":{"type":"string"},"preview":{"type":"boolean"}},"required":["id","site_id","status","source","file_count","byte_size","created_by","created_at","finalized_at","failed_reason","is_production","preview_url"]}},"meta":{"type":"object","properties":{"current_page":{"type":"integer"},"last_page":{"type":"integer"},"per_page":{"type":"integer"},"total":{"type":"integer"},"from":{"anyOf":[{"type":"integer"},{"type":"null"}]},"to":{"anyOf":[{"type":"integer"},{"type":"null"}]}},"required":["current_page","last_page","per_page","total","from","to"]}},"required":["success","message","data","meta"]}}}},"401":{"description":"UNAUTHENTICATED: Missing, unknown or revoked key, or its site, workspace, creator seat or hosting plan is no longer active. No further detail is given.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: More than 120 requests in a minute with one key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"INTERNAL_ERROR: Something failed on Soartana's side. Retry with backoff; a deploy that was not created or finalized is safe to start again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"RETRYABLE: Soartana was briefly busy with a conflicting change. Nothing was saved: wait the seconds in the Retry-After header, then repeat the same call.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"operationId":"createDeploy","summary":"Start a deploy from a manifest: returns one presigned PUT (15 min) per file; PUT each file with the returned headers, then finalize. 422 HOSTING_MANIFEST_INVALID / HOSTING_DEPLOY_TOO_LARGE / HOSTING_TOO_MANY_PENDING. The deploy is always recorded with source 'api' (a body `source` is ignored)","externalDocs":{"url":"https://app.soartana.com/docs/developer/hosting/v1/api"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"source":{"type":"string","enum":["upload","api","arch"]},"cms_bindings_hash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"files":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string","maxLength":4096},"size":{"type":"number"},"content_type":{"type":"string","maxLength":255}},"required":["path","size"]},"maxItems":50000}},"required":["files"]}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"deploy":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"site_id":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["uploading","ready","failed","discarded"]},"source":{"type":"string","enum":["upload","api","arch"]},"file_count":{"type":"integer"},"byte_size":{"type":"integer"},"created_by":{"type":"string","format":"uuid"},"created_at":{"type":"string"},"finalized_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"failed_reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"is_production":{"type":"boolean"},"preview_url":{"type":"string"},"preview":{"type":"boolean"}},"required":["id","site_id","status","source","file_count","byte_size","created_by","created_at","finalized_at","failed_reason","is_production","preview_url"]},"uploads":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"url":{"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}}},"required":["path","url","headers"]}},"reused":{"type":"array","items":{"type":"string"}}},"required":["deploy","uploads"]}},"required":["success","message","data"]}}}},"400":{"description":"HTTP_ERROR: The server could not read the request: malformed JSON (400), a body over the server's size limit (413) or a Content-Type other than application/json (415).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"UNAUTHENTICATED: Missing, unknown or revoked key, or its site, workspace, creator seat or hosting plan is no longer active. No further detail is given.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"CONFLICT: Another change to the same record landed at the same moment. Read the current state (for example the deploy list), then repeat the call if it is still needed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"HTTP_ERROR: The server could not read the request: malformed JSON (400), a body over the server's size limit (413) or a Content-Type other than application/json (415).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"415":{"description":"HTTP_ERROR: The server could not read the request: malformed JSON (400), a body over the server's size limit (413) or a Content-Type other than application/json (415).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"VALIDATION_ERROR: The body or a path id has the wrong shape (for example a manifest entry without a path, or a deploy id that is not a UUID). The errors field names each field. HOSTING_MANIFEST_INVALID: A manifest path is empty, absolute, contains .. or a dot-segment, or is too long. HOSTING_DEPLOY_TOO_LARGE: Too many files, one file too large, or the whole deploy over the hosting plan's size cap. HOSTING_TOO_MANY_PENDING: 3 deploys are already uploading for this site.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: More than 120 requests in a minute with one key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"INTERNAL_ERROR: Something failed on Soartana's side. Retry with backoff; a deploy that was not created or finalized is safe to start again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"RETRYABLE: Soartana was briefly busy with a conflicting change. Nothing was saved: wait the seconds in the Retry-After header, then repeat the same call.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/public/hosting/v1/deploys/{deployId}":{"get":{"operationId":"getDeploy","summary":"One deploy of the site","externalDocs":{"url":"https://app.soartana.com/docs/developer/hosting/v1/api"},"parameters":[{"name":"deployId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"site_id":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["uploading","ready","failed","discarded"]},"source":{"type":"string","enum":["upload","api","arch"]},"file_count":{"type":"integer"},"byte_size":{"type":"integer"},"created_by":{"type":"string","format":"uuid"},"created_at":{"type":"string"},"finalized_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"failed_reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"is_production":{"type":"boolean"},"preview_url":{"type":"string"},"preview":{"type":"boolean"}},"required":["id","site_id","status","source","file_count","byte_size","created_by","created_at","finalized_at","failed_reason","is_production","preview_url"]}},"required":["success","message","data"]}}}},"401":{"description":"UNAUTHENTICATED: Missing, unknown or revoked key, or its site, workspace, creator seat or hosting plan is no longer active. No further detail is given.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"HOSTING_DEPLOY_NOT_FOUND: The deploy does not exist or does not belong to the key's site.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"VALIDATION_ERROR: The body or a path id has the wrong shape (for example a manifest entry without a path, or a deploy id that is not a UUID). The errors field names each field.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: More than 120 requests in a minute with one key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"INTERNAL_ERROR: Something failed on Soartana's side. Retry with backoff; a deploy that was not created or finalized is safe to start again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"RETRYABLE: Soartana was briefly busy with a conflicting change. Nothing was saved: wait the seconds in the Retry-After header, then repeat the same call.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/public/hosting/v1/deploys/{deployId}/finalize":{"post":{"operationId":"finalizeDeploy","summary":"Verify every uploaded file and mark the deploy ready; 422 HOSTING_DEPLOY_INCOMPLETE (the deploy is then failed and its files deleted)","externalDocs":{"url":"https://app.soartana.com/docs/developer/hosting/v1/api"},"parameters":[{"name":"deployId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"site_id":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["uploading","ready","failed","discarded"]},"source":{"type":"string","enum":["upload","api","arch"]},"file_count":{"type":"integer"},"byte_size":{"type":"integer"},"created_by":{"type":"string","format":"uuid"},"created_at":{"type":"string"},"finalized_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"failed_reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"is_production":{"type":"boolean"},"preview_url":{"type":"string"},"preview":{"type":"boolean"}},"required":["id","site_id","status","source","file_count","byte_size","created_by","created_at","finalized_at","failed_reason","is_production","preview_url"]}},"required":["success","message","data"]}}}},"400":{"description":"HTTP_ERROR: The server could not read the request: malformed JSON (400), a body over the server's size limit (413) or a Content-Type other than application/json (415).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"UNAUTHENTICATED: Missing, unknown or revoked key, or its site, workspace, creator seat or hosting plan is no longer active. No further detail is given.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"HOSTING_DEPLOY_NOT_FOUND: The deploy does not exist or does not belong to the key's site.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"HOSTING_DEPLOY_NOT_UPLOADING: Finalize was called on a deploy that is no longer uploading. CONFLICT: Another change to the same record landed at the same moment. Read the current state (for example the deploy list), then repeat the call if it is still needed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"HTTP_ERROR: The server could not read the request: malformed JSON (400), a body over the server's size limit (413) or a Content-Type other than application/json (415).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"415":{"description":"HTTP_ERROR: The server could not read the request: malformed JSON (400), a body over the server's size limit (413) or a Content-Type other than application/json (415).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"VALIDATION_ERROR: The body or a path id has the wrong shape (for example a manifest entry without a path, or a deploy id that is not a UUID). The errors field names each field. HOSTING_DEPLOY_INCOMPLETE: Finalize found a missing or wrong-sized file; the deploy is now failed and its files are deleted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: More than 120 requests in a minute with one key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"INTERNAL_ERROR: Something failed on Soartana's side. Retry with backoff; a deploy that was not created or finalized is safe to start again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"RETRYABLE: Soartana was briefly busy with a conflicting change. Nothing was saved: wait the seconds in the Retry-After header, then repeat the same call.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/public/hosting/v1/deploys/{deployId}/promote":{"post":{"operationId":"promoteDeploy","summary":"Make a ready deploy the site's production deploy","externalDocs":{"url":"https://app.soartana.com/docs/developer/hosting/v1/api"},"parameters":[{"name":"deployId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"publication_receipt":{"anyOf":[{"type":"object","properties":{"event_id":{"type":"string","format":"uuid"},"origin_product":{"type":"string","enum":["formlab","arch","hosting"]}},"required":["event_id","origin_product"]},{"type":"null"}]},"id":{"type":"string","format":"uuid"},"slug":{"type":"string"},"name":{"type":"string"},"status":{"type":"string","enum":["active","archived"]},"production_deploy_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"last_published_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"primary_domain":{"anyOf":[{"type":"object","properties":{"hostname":{"type":"string"},"status":{"type":"string","enum":["pending","verified","failed","removed"]},"cert_status":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["hostname","status","cert_status"]},{"type":"null"}]},"arch_site_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"default_url":{"type":"string"},"created_at":{"type":"string"},"updated_at":{"type":"string"}},"required":["id","slug","name","status","production_deploy_id","default_url","created_at","updated_at"]}},"required":["success","message","data"]}}}},"400":{"description":"HTTP_ERROR: The server could not read the request: malformed JSON (400), a body over the server's size limit (413) or a Content-Type other than application/json (415).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"UNAUTHENTICATED: Missing, unknown or revoked key, or its site, workspace, creator seat or hosting plan is no longer active. No further detail is given.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"HOSTING_DEPLOY_NOT_FOUND: The deploy does not exist or does not belong to the key's site.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"HOSTING_DEPLOY_NOT_READY: Promote or rollback named a deploy that is not ready. HOSTING_DEPLOY_IS_PREVIEW: Promote or rollback named an Arch editor preview (preview: true in the deploy list). A preview was never live and never goes live this way: publish the site from Arch. HOSTING_SITE_IN_ARCH_TRASH: Promote or rollback was refused because the site's website is in Arch's Trash. Restore it in Arch to publish it again. CONFLICT: Another change to the same record landed at the same moment. Read the current state (for example the deploy list), then repeat the call if it is still needed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"HTTP_ERROR: The server could not read the request: malformed JSON (400), a body over the server's size limit (413) or a Content-Type other than application/json (415).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"415":{"description":"HTTP_ERROR: The server could not read the request: malformed JSON (400), a body over the server's size limit (413) or a Content-Type other than application/json (415).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"VALIDATION_ERROR: The body or a path id has the wrong shape (for example a manifest entry without a path, or a deploy id that is not a UUID). The errors field names each field.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: More than 120 requests in a minute with one key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"INTERNAL_ERROR: Something failed on Soartana's side. Retry with backoff; a deploy that was not created or finalized is safe to start again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"RETRYABLE: Soartana was briefly busy with a conflicting change. Nothing was saved: wait the seconds in the Retry-After header, then repeat the same call.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/public/hosting/v1/rollback":{"post":{"operationId":"rollback","summary":"Instant rollback: point production at an earlier ready deploy of the site","externalDocs":{"url":"https://app.soartana.com/docs/developer/hosting/v1/api"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"deploy_id":{"type":"string","format":"uuid"}},"required":["deploy_id"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"const":true},"message":{"type":"string"},"data":{"type":"object","properties":{"publication_receipt":{"anyOf":[{"type":"object","properties":{"event_id":{"type":"string","format":"uuid"},"origin_product":{"type":"string","enum":["formlab","arch","hosting"]}},"required":["event_id","origin_product"]},{"type":"null"}]},"id":{"type":"string","format":"uuid"},"slug":{"type":"string"},"name":{"type":"string"},"status":{"type":"string","enum":["active","archived"]},"production_deploy_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"last_published_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"primary_domain":{"anyOf":[{"type":"object","properties":{"hostname":{"type":"string"},"status":{"type":"string","enum":["pending","verified","failed","removed"]},"cert_status":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["hostname","status","cert_status"]},{"type":"null"}]},"arch_site_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"default_url":{"type":"string"},"created_at":{"type":"string"},"updated_at":{"type":"string"}},"required":["id","slug","name","status","production_deploy_id","default_url","created_at","updated_at"]}},"required":["success","message","data"]}}}},"400":{"description":"HTTP_ERROR: The server could not read the request: malformed JSON (400), a body over the server's size limit (413) or a Content-Type other than application/json (415).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"UNAUTHENTICATED: Missing, unknown or revoked key, or its site, workspace, creator seat or hosting plan is no longer active. No further detail is given.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"HOSTING_DEPLOY_NOT_FOUND: The deploy does not exist or does not belong to the key's site.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"HOSTING_DEPLOY_NOT_READY: Promote or rollback named a deploy that is not ready. HOSTING_DEPLOY_IS_PREVIEW: Promote or rollback named an Arch editor preview (preview: true in the deploy list). A preview was never live and never goes live this way: publish the site from Arch. HOSTING_SITE_IN_ARCH_TRASH: Promote or rollback was refused because the site's website is in Arch's Trash. Restore it in Arch to publish it again. CONFLICT: Another change to the same record landed at the same moment. Read the current state (for example the deploy list), then repeat the call if it is still needed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"HTTP_ERROR: The server could not read the request: malformed JSON (400), a body over the server's size limit (413) or a Content-Type other than application/json (415).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"415":{"description":"HTTP_ERROR: The server could not read the request: malformed JSON (400), a body over the server's size limit (413) or a Content-Type other than application/json (415).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"VALIDATION_ERROR: The body or a path id has the wrong shape (for example a manifest entry without a path, or a deploy id that is not a UUID). The errors field names each field.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: More than 120 requests in a minute with one key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"INTERNAL_ERROR: Something failed on Soartana's side. Retry with backoff; a deploy that was not created or finalized is safe to start again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"RETRYABLE: Soartana was briefly busy with a conflicting change. Nothing was saved: wait the seconds in the Retry-After header, then repeat the same call.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}}}}