Skip to main content
PATCH
Change whether a release is required, or its connecting code

Authorizations

Authorization
string
header
required

A user API token, or a product API key created in a product's settings.

A product API key only works on the routes for its own product, under /api/orgs/{org_name}/products/{product_name}, and on /api/devices/{identifier} for that product's devices. What it may do there is decided by the role it holds, the same way a member's role decides what they may do.

Path Parameters

org_name
string
required

Organization Name

product_name
string
required

Product Name

name
string
required

Deployment Group Name

number
integer
required

Release number within the deployment group

Body

application/json

Release update request body

PATCH body for changing a release. Only these fields can change once a release is made; any left out keep their value.

connecting_code
string | null

Elixir run on a device when it connects, as long as this release is the one it is sent. Null or an empty string removes it.

connecting_code_mode
enum<string>

Where the release's connecting code runs relative to the deployment group's: "first" (before it), "last" (after it) or "override" (instead of it)

Available options:
first,
last,
override
required
boolean

Devices that have not reached a required release are updated to it before any newer release

Response

Release response

A single release

data
DeploymentRelease · object
Example: