Welcome to the new Golem Cloud Docs! 👋
Documentation
API Deployment

Api Deployment API

Creates or updates a deployment

PathMethodProtected
/v1/api/deployments/deployPOSTNo

Deploys a set of API definitions to a site (specific host and subdomain).

Example Request JSON

{
  "apiDefinitions": [
    {
      "id": "string",
      "version": "string"
    }
  ],
  "site": {
    "host": "string",
    "subdomain": "string"
  }
}

Example Response JSON

{
  "apiDefinitions": [
    {
      "id": "string",
      "version": "string"
    }
  ],
  "site": {
    "host": "string",
    "subdomain": "string"
  }
}

Get one or more API deployments

PathMethodProtected
/v1/api/deploymentsGETNo

If api-definition-id is not set, it lists all API deployments. If api-definition-id is set, returns a single API deployment.

Query Parameters

NameTypeRequiredDescription
api-definition-idstringYes-

Example Response JSON

[
  {
    "apiDefinitions": [
      {
        "id": "string",
        "version": "string"
      }
    ],
    "site": {
      "host": "string",
      "subdomain": "string"
    }
  }
]

Get API deployment by site

PathMethodProtected
/v1/api/deployments/{site}GETNo

Gets an API deployment by the host name (optionally with a subdomain) it is deployed to.

Example Response JSON

{
  "apiDefinitions": [
    {
      "id": "string",
      "version": "string"
    }
  ],
  "site": {
    "host": "string",
    "subdomain": "string"
  }
}

Delete API deployment by site

PathMethodProtected
/v1/api/deployments/{site}DELETENo

Deletes an API deployment by the host name (optionally with a subdomain) it is deployed to.

Example Response JSON

"string"

Api Deployment API Errors

Status CodeDescriptionBody
400{"type":"Messages","errors":["string"]}
401{"error":"string"}
403{"error":"string"}
404{"error":"string"}
409"string"
500{"error":"string"}