Pluma
Docs index
docs/errors/deploy_unavailable.md View markdown →

deploy_unavailable

HTTP 422 · The deploy couldn't start.

Why it happens

You asked Pluma to rebuild the site (trigger_deploy, POST /api/v1/spaces/:space_id/deploys), but the site has no deploy hook for that target:

  • production needs a hook with target production (the live site).
  • staging needs a hook with target preview (the staging site).

details.reason says which one, and details.target the target you asked for.

How to fix it

Add a deploy hook for that target in Settings → Deploy, or with create_webhook / POST /api/v1/spaces/:space_id/webhooks (see Webhooks). If the other target has a hook, fix says so: deploy that one instead. Nothing was called and nothing changed.

Example

{
  "error": {
    "code": "deploy_unavailable",
    "message": "The deploy couldn't start.",
    "fix": "Add a preview (staging) deploy hook in Settings → Deploy (or create_webhook with target preview), or deploy target production, which has one.",
    "doc_url": "https://pluma.so/docs/errors/deploy_unavailable",
    "details": { "reason": "This site has no preview (staging) deploy hook, so there is nothing to call.", "target": "staging" }
  }
}