API

DeploymentFile

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
PUT /api/v1/static_sites/{static_site_id}/deployments/{id}/files update Success

Examples

One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.

Golang

Construct client as shown in the Golang setup, then call the operations:

updated, err := client.DeploymentFile(nil).Update(map[string]any{"deployment_id": "example", "static_site_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(updated)

Lua

Construct client as shown in the Lua setup, then call the operations:

local updated, err = client:DeploymentFile():update({ deployment_id = "example", static_site_id = "example" })

PHP

Construct client as shown in the PHP setup, then call the operations:

$updated = $client->DeploymentFile()->update(["deployment_id" => "example", "static_site_id" => "example"]);

Python

Construct client as shown in the Python setup, then call the operations:

updated = client.DeploymentFile().update({"deployment_id": "example", "static_site_id": "example"})

Ruby

Construct client as shown in the Ruby setup, then call the operations:

updated = client.DeploymentFile.update({ "deployment_id" => "example", "static_site_id" => "example" })

TypeScript

Construct client as shown in the TypeScript setup, then call the operations:

const updated = await client.DeploymentFile().update({ deployment_id: "example", static_site_id: "example" })

Fields

Field Type Required Description

update

PUT /api/v1/static_sites/{static_site_id}/deployments/{id}/files

Operation ID: files_api_v1_static_site_deployment.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
static_site_id path string Yes
id path string Yes

Request body

application/json

The request body is object.

Responses

200: Success

application/json

The response is object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway