Copy
curl --request POST \
--url https://app.specurate.com/api/v1/workspaces/{workspaceId}/presentations/{presentationId}/items/copy \
--header 'Content-Type: application/json' \
--data '
{
"ref": {
"kind": "project_item",
"slotId": "<string>"
},
"clientRequestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'import requests
url = "https://app.specurate.com/api/v1/workspaces/{workspaceId}/presentations/{presentationId}/items/copy"
payload = {
"ref": {
"kind": "project_item",
"slotId": "<string>"
},
"clientRequestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
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({
ref: {kind: 'project_item', slotId: '<string>'},
clientRequestId: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
})
};
fetch('https://app.specurate.com/api/v1/workspaces/{workspaceId}/presentations/{presentationId}/items/copy', 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://app.specurate.com/api/v1/workspaces/{workspaceId}/presentations/{presentationId}/items/copy",
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([
'ref' => [
'kind' => 'project_item',
'slotId' => '<string>'
],
'clientRequestId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
]),
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://app.specurate.com/api/v1/workspaces/{workspaceId}/presentations/{presentationId}/items/copy"
payload := strings.NewReader("{\n \"ref\": {\n \"kind\": \"project_item\",\n \"slotId\": \"<string>\"\n },\n \"clientRequestId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\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://app.specurate.com/api/v1/workspaces/{workspaceId}/presentations/{presentationId}/items/copy")
.header("Content-Type", "application/json")
.body("{\n \"ref\": {\n \"kind\": \"project_item\",\n \"slotId\": \"<string>\"\n },\n \"clientRequestId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.specurate.com/api/v1/workspaces/{workspaceId}/presentations/{presentationId}/items/copy")
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 \"ref\": {\n \"kind\": \"project_item\",\n \"slotId\": \"<string>\"\n },\n \"clientRequestId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"presentationId": "<string>",
"name": "<string>",
"categoryId": "<string>",
"productTypeId": "<string>",
"columnsAttributes": {},
"manufacturerCompanyId": "<string>",
"source": {
"companyId": "<string>",
"officeId": "<string>"
},
"sourceAttributes": {},
"images": [
{
"uploadId": "<string>",
"url": "<string>",
"filename": "<string>"
}
],
"card": {
"missing": true,
"name": "<string>",
"vendor": "<string>",
"finish": "<string>",
"sku": "<string>",
"dimensions": "<string>",
"leadTime": "<string>",
"price": 123,
"qty": 123,
"category": "<string>",
"area": "<string>",
"imageUrl": "<string>",
"images": [
{
"url": "<string>",
"label": "<string>"
}
],
"materials": [
{
"id": "<string>",
"name": "<string>",
"finish": "<string>",
"location": "<string>",
"quantity": "<string>",
"price": 123,
"imageUrl": "<string>"
}
],
"linkedItems": [
{
"id": "<string>",
"name": "<string>",
"vendor": "<string>",
"finish": "<string>",
"price": 123,
"dimensions": "<string>",
"leadTime": "<string>",
"imageUrl": "<string>"
}
],
"alternatives": [
{
"id": "<string>",
"name": "<string>",
"vendor": "<string>",
"price": 123,
"finish": "<string>",
"dimensions": "<string>",
"leadTime": "<string>",
"inStock": true,
"imageUrl": "<string>"
}
],
"counts": {
"materials": 4503599627370495,
"linkedItems": 4503599627370495,
"alternatives": 4503599627370495
},
"budgetKey": "<string>"
},
"pushedSlotId": "<string>",
"version": 0
}Presentation Items
Copy
Copies this board’s accepted item content and photos into a private item. Keeping its accepted manufacturer or source does not select a new company. Replays with the same clientRequestId return the same copy.
POST
/
v1
/
workspaces
/
{workspaceId}
/
presentations
/
{presentationId}
/
items
/
copy
Copy
curl --request POST \
--url https://app.specurate.com/api/v1/workspaces/{workspaceId}/presentations/{presentationId}/items/copy \
--header 'Content-Type: application/json' \
--data '
{
"ref": {
"kind": "project_item",
"slotId": "<string>"
},
"clientRequestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'import requests
url = "https://app.specurate.com/api/v1/workspaces/{workspaceId}/presentations/{presentationId}/items/copy"
payload = {
"ref": {
"kind": "project_item",
"slotId": "<string>"
},
"clientRequestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
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({
ref: {kind: 'project_item', slotId: '<string>'},
clientRequestId: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
})
};
fetch('https://app.specurate.com/api/v1/workspaces/{workspaceId}/presentations/{presentationId}/items/copy', 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://app.specurate.com/api/v1/workspaces/{workspaceId}/presentations/{presentationId}/items/copy",
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([
'ref' => [
'kind' => 'project_item',
'slotId' => '<string>'
],
'clientRequestId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
]),
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://app.specurate.com/api/v1/workspaces/{workspaceId}/presentations/{presentationId}/items/copy"
payload := strings.NewReader("{\n \"ref\": {\n \"kind\": \"project_item\",\n \"slotId\": \"<string>\"\n },\n \"clientRequestId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\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://app.specurate.com/api/v1/workspaces/{workspaceId}/presentations/{presentationId}/items/copy")
.header("Content-Type", "application/json")
.body("{\n \"ref\": {\n \"kind\": \"project_item\",\n \"slotId\": \"<string>\"\n },\n \"clientRequestId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.specurate.com/api/v1/workspaces/{workspaceId}/presentations/{presentationId}/items/copy")
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 \"ref\": {\n \"kind\": \"project_item\",\n \"slotId\": \"<string>\"\n },\n \"clientRequestId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"presentationId": "<string>",
"name": "<string>",
"categoryId": "<string>",
"productTypeId": "<string>",
"columnsAttributes": {},
"manufacturerCompanyId": "<string>",
"source": {
"companyId": "<string>",
"officeId": "<string>"
},
"sourceAttributes": {},
"images": [
{
"uploadId": "<string>",
"url": "<string>",
"filename": "<string>"
}
],
"card": {
"missing": true,
"name": "<string>",
"vendor": "<string>",
"finish": "<string>",
"sku": "<string>",
"dimensions": "<string>",
"leadTime": "<string>",
"price": 123,
"qty": 123,
"category": "<string>",
"area": "<string>",
"imageUrl": "<string>",
"images": [
{
"url": "<string>",
"label": "<string>"
}
],
"materials": [
{
"id": "<string>",
"name": "<string>",
"finish": "<string>",
"location": "<string>",
"quantity": "<string>",
"price": 123,
"imageUrl": "<string>"
}
],
"linkedItems": [
{
"id": "<string>",
"name": "<string>",
"vendor": "<string>",
"finish": "<string>",
"price": 123,
"dimensions": "<string>",
"leadTime": "<string>",
"imageUrl": "<string>"
}
],
"alternatives": [
{
"id": "<string>",
"name": "<string>",
"vendor": "<string>",
"price": 123,
"finish": "<string>",
"dimensions": "<string>",
"leadTime": "<string>",
"inStock": true,
"imageUrl": "<string>"
}
],
"counts": {
"materials": 4503599627370495,
"linkedItems": 4503599627370495,
"alternatives": 4503599627370495
},
"budgetKey": "<string>"
},
"pushedSlotId": "<string>",
"version": 0
}Body
application/json
Response
201 - application/json
⌘I