List a build's releases
curl --request GET \
--url https://platformapi.comfy.org/builder/v1/builds/{id}/releases \
--header 'Authorization: Bearer <token>'import requests
url = "https://platformapi.comfy.org/builder/v1/builds/{id}/releases"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platformapi.comfy.org/builder/v1/builds/{id}/releases', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://platformapi.comfy.org/builder/v1/builds/{id}/releases",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://platformapi.comfy.org/builder/v1/builds/{id}/releases"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://platformapi.comfy.org/builder/v1/builds/{id}/releases")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://platformapi.comfy.org/builder/v1/builds/{id}/releases")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"releases": [
{
"id": "<string>",
"version": 123,
"status": "queued",
"deployable": true,
"artifactCounts": {
"total": 123,
"ready": 123,
"failed": 123,
"stopped": 123,
"pending": 123
},
"createdAt": "2023-11-07T05:31:56Z",
"sizeBytes": 123,
"numUnsizedItems": 123
}
],
"nextCursor": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}API Reference
List a build's releases
Paginated, newest first, optionally filtered by status.
GET
/
v1
/
builds
/
{id}
/
releases
List a build's releases
curl --request GET \
--url https://platformapi.comfy.org/builder/v1/builds/{id}/releases \
--header 'Authorization: Bearer <token>'import requests
url = "https://platformapi.comfy.org/builder/v1/builds/{id}/releases"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platformapi.comfy.org/builder/v1/builds/{id}/releases', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://platformapi.comfy.org/builder/v1/builds/{id}/releases",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://platformapi.comfy.org/builder/v1/builds/{id}/releases"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://platformapi.comfy.org/builder/v1/builds/{id}/releases")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://platformapi.comfy.org/builder/v1/builds/{id}/releases")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"releases": [
{
"id": "<string>",
"version": 123,
"status": "queued",
"deployable": true,
"artifactCounts": {
"total": 123,
"ready": 123,
"failed": 123,
"stopped": 123,
"pending": 123
},
"createdAt": "2023-11-07T05:31:56Z",
"sizeBytes": 123,
"numUnsizedItems": 123
}
],
"nextCursor": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}Autorizaciones
BearerAuthApiKeyAuth
Parámetros de consulta
Closed enum for a release's build lifecycle: queued (nothing started), building (a target is in flight), stopping (a target is stopping), stopped (all targets are terminal and some stopped), complete (all targets are terminal and none stopped). It says only whether the build is DONE, not whether it succeeded or is deployable. A complete release may have built all, some, or none of its targets; see artifactCounts and deployable. Adding or retrying a target reopens it to building.
Opciones disponibles:
queued, building, complete, stopping, stopped ¿Esta página le ayudó?