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

Api Deployment API

Creates or updates a deployment

PathMethodProtected
/v1/api/deployments/deployPOSTYes

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

Example Request JSON

{
  "apiDefinitions": [
    {
      "id": "string",
      "version": "string"
    }
  ],
  "projectId": "5a8591dd-4039-49df-9202-96385ba3eff8",
  "site": {
    "host": "string",
    "subdomain": "string"
  }
}

Example Response JSON

{
  "apiDefinitions": [
    {
      "id": "string",
      "version": "string"
    }
  ],
  "projectId": "5a8591dd-4039-49df-9202-96385ba3eff8",
  "site": {
    "host": "string",
    "subdomain": "string"
  }
}

Get one or more API deployments

PathMethodProtected
/v1/api/deploymentsGETYes

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
project-idstringYes-
api-definition-idstringYes-

Example Response JSON

[
  {
    "apiDefinitions": [
      {
        "id": "string",
        "version": "string"
      }
    ],
    "projectId": "5a8591dd-4039-49df-9202-96385ba3eff8",
    "site": {
      "host": "string",
      "subdomain": "string"
    }
  }
]

Get API deployment by site

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

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

Example Response JSON

{
  "apiDefinitions": [
    {
      "id": "string",
      "version": "string"
    }
  ],
  "projectId": "5a8591dd-4039-49df-9202-96385ba3eff8",
  "site": {
    "host": "string",
    "subdomain": "string"
  }
}

Delete API deployment by site

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

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{"message":"string"}
409"string"
500{"error":"string"}