A copy's template update, offered (AS16)
curl --request GET \
--url https://api.eddy.engineer/v1/workshop/copies/{id}/updateimport requests
url = "https://api.eddy.engineer/v1/workshop/copies/{id}/update"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.eddy.engineer/v1/workshop/copies/{id}/update', 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://api.eddy.engineer/v1/workshop/copies/{id}/update",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://api.eddy.engineer/v1/workshop/copies/{id}/update"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.eddy.engineer/v1/workshop/copies/{id}/update")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/workshop/copies/{id}/update")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"agent": {},
"agent_note": "<string>",
"base_available": true,
"changes": [
{}
],
"copy": "<string>",
"gone": true,
"kind": "<string>",
"merge": {},
"note": "<string>",
"origin": {},
"template": {},
"template_changes": {},
"update": true,
"version": 123,
"your_changes": {}
}Meta
A copy's template update, offered (AS16)
For an app or agent started from a template: whether the template moved on since the copy’s version, what changed (the changelog, the nodes the template changed, the nodes the person changed) and whether taking it merges cleanly or which nodes conflict. Nothing is applied.
GET
/
v1
/
workshop
/
copies
/
{id}
/
update
A copy's template update, offered (AS16)
curl --request GET \
--url https://api.eddy.engineer/v1/workshop/copies/{id}/updateimport requests
url = "https://api.eddy.engineer/v1/workshop/copies/{id}/update"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.eddy.engineer/v1/workshop/copies/{id}/update', 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://api.eddy.engineer/v1/workshop/copies/{id}/update",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://api.eddy.engineer/v1/workshop/copies/{id}/update"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.eddy.engineer/v1/workshop/copies/{id}/update")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/workshop/copies/{id}/update")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"agent": {},
"agent_note": "<string>",
"base_available": true,
"changes": [
{}
],
"copy": "<string>",
"gone": true,
"kind": "<string>",
"merge": {},
"note": "<string>",
"origin": {},
"template": {},
"template_changes": {},
"update": true,
"version": 123,
"your_changes": {}
}Response
The offer (update false when there is none)