curl --request POST \
--url https://api.eddy.engineer/v1/workshop/templates/{id}/use \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"team": "<string>",
"version": 123
}
'import requests
url = "https://api.eddy.engineer/v1/workshop/templates/{id}/use"
payload = {
"name": "<string>",
"team": "<string>",
"version": 123
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>', team: '<string>', version: 123})
};
fetch('https://api.eddy.engineer/v1/workshop/templates/{id}/use', 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/templates/{id}/use",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'team' => '<string>',
'version' => 123
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.eddy.engineer/v1/workshop/templates/{id}/use"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"team\": \"<string>\",\n \"version\": 123\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.eddy.engineer/v1/workshop/templates/{id}/use")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"team\": \"<string>\",\n \"version\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/workshop/templates/{id}/use")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"team\": \"<string>\",\n \"version\": 123\n}"
response = http.request(request)
puts response.read_body{
"agent": {},
"agent_problems": [
{}
],
"app": {},
"kind": "<string>",
"open": "<string>",
"pair": {},
"problems": [
{}
],
"template": "<string>",
"version": 123
}Start from a template (AS16, TL1)
Makes the caller’s own copy of the template. An agent alone is saved through the same save as POST /v1/agents, a retired screen-only calculator through POST /v1/apps’ (with that save’s default visibility unless visibility says otherwise). TL1: a template with a screen copies to a pinned pair — the agent first, then the screen with its agent set to that agent copy, both with their origin — and answers with both (app and its problems, agent and its agent_problems, pair: {app, agent}), kind app and open the screen. There is no transaction: a screen that does not save takes its agent copy with it, and the screen’s refusal is the answer. Answers as the save does, plus template, kind, version and open (the Workshop URL that opens it). Nothing of the template changes. Slice 2: each copy records its origin (the template, the version, that part’s hash), so the template’s later versions are offered to it as an update (/v1/workshop/copies/{id}/update).
curl --request POST \
--url https://api.eddy.engineer/v1/workshop/templates/{id}/use \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"team": "<string>",
"version": 123
}
'import requests
url = "https://api.eddy.engineer/v1/workshop/templates/{id}/use"
payload = {
"name": "<string>",
"team": "<string>",
"version": 123
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>', team: '<string>', version: 123})
};
fetch('https://api.eddy.engineer/v1/workshop/templates/{id}/use', 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/templates/{id}/use",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'team' => '<string>',
'version' => 123
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.eddy.engineer/v1/workshop/templates/{id}/use"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"team\": \"<string>\",\n \"version\": 123\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.eddy.engineer/v1/workshop/templates/{id}/use")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"team\": \"<string>\",\n \"version\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/workshop/templates/{id}/use")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"team\": \"<string>\",\n \"version\": 123\n}"
response = http.request(request)
puts response.read_body{
"agent": {},
"agent_problems": [
{}
],
"app": {},
"kind": "<string>",
"open": "<string>",
"pair": {},
"problems": [
{}
],
"template": "<string>",
"version": 123
}