POST /api/v/5/source/api/preconfiguredproducts/?recipeid=f255af6f-9614-4fe2-aa8b-1b77b936d9d6 HTTP/1.1
Content-Type: application/json
Host: api.print.io
Content-Length: 384

{
  "Sku": "my-prp-sku-1",
  "Name": "Pet Canvas",
  "Description": "Funny pet canvas",
  "Items": [
    {
      "ProductId": 43,
      "ProductVariantSku": "CanvsWrp-ImgWrp-10x10",
      "Preconfigurations": [
        {
          "Url": "https://placekitten.com/3000/3000"
        }
      ]
    }
  ],
  "Images": [
    {
      "Url": "https://placekitten.com/3000/3000",
    }
  ]
}
var settings = {
  "async": true,
  "crossDomain": true,
  "url": "https://api.print.io/api/v/5/source/api/preconfiguredproducts/?recipeid=f255af6f-9614-4fe2-aa8b-1b77b936d9d6",
  "method": "POST",
  "headers": {
    "content-type": "application/json"
  },
  "data": "{\n  \"Sku\": \"my-prp-sku-1\",\n  \"Name\": \"Pet Canvas\",\n  \"Description\": \"Funny pet canvas\",\n  \"Items\": [\n    {\n      \"ProductId\": 43,\n      \"ProductVariantSku\": \"CanvsWrp-ImgWrp-10x10\",\n      \"Preconfigurations\": [\n        {\n          \"Url\": \"https://placekitten.com/3000/3000\"\n        }\n      ]\n    }\n  ],\n  \"Images\": [\n    {\n      \"Url\": \"https://placekitten.com/3000/3000\",\n    }\n  ]\n}"
}

$.ajax(settings).done(function (response) {
  console.log(response);
});
fetch("https://api.print.io/api/v/5/source/api/preconfiguredproducts/?recipeid=f255af6f-9614-4fe2-aa8b-1b77b936d9d6", {
  "method": "POST",
  "headers": {
    "content-type": "application/json"
  },
  "body": "{\n  \"Sku\": \"my-prp-sku-1\",\n  \"Name\": \"Pet Canvas\",\n  \"Description\": \"Funny pet canvas\",\n  \"Items\": [\n    {\n      \"ProductId\": 43,\n      \"ProductVariantSku\": \"CanvsWrp-ImgWrp-10x10\",\n      \"Preconfigurations\": [\n        {\n          \"Url\": \"https://placekitten.com/3000/3000\"\n        }\n      ]\n    }\n  ],\n  \"Images\": [\n    {\n      \"Url\": \"https://placekitten.com/3000/3000\",\n    }\n  ]\n}"
})
.then(response => {
  console.log(response);
})
.catch(err => {
  console.log(err);
});
var data = "{\n  \"Sku\": \"my-prp-sku-1\",\n  \"Name\": \"Pet Canvas\",\n  \"Description\": \"Funny pet canvas\",\n  \"Items\": [\n    {\n      \"ProductId\": 43,\n      \"ProductVariantSku\": \"CanvsWrp-ImgWrp-10x10\",\n      \"Preconfigurations\": [\n        {\n          \"Url\": \"https://placekitten.com/3000/3000\"\n        }\n      ]\n    }\n  ],\n  \"Images\": [\n    {\n      \"Url\": \"https://placekitten.com/3000/3000\",\n    }\n  ]\n}";

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "https://api.print.io/api/v/5/source/api/preconfiguredproducts/?recipeid=f255af6f-9614-4fe2-aa8b-1b77b936d9d6");
xhr.setRequestHeader("content-type", "application/json");

xhr.send(data);
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.print.io/api/v/5/source/api/preconfiguredproducts/?recipeid=f255af6f-9614-4fe2-aa8b-1b77b936d9d6",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => "{\n  \"Sku\": \"my-prp-sku-1\",\n  \"Name\": \"Pet Canvas\",\n  \"Description\": \"Funny pet canvas\",\n  \"Items\": [\n    {\n      \"ProductId\": 43,\n      \"ProductVariantSku\": \"CanvsWrp-ImgWrp-10x10\",\n      \"Preconfigurations\": [\n        {\n          \"Url\": \"https://placekitten.com/3000/3000\"\n        }\n      ]\n    }\n  ],\n  \"Images\": [\n    {\n      \"Url\": \"https://placekitten.com/3000/3000\",\n    }\n  ]\n}",
  CURLOPT_HTTPHEADER => array(
    "content-type: application/json"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
<?php

$request = new HttpRequest();
$request->setUrl('https://api.print.io/api/v/5/source/api/preconfiguredproducts/');
$request->setMethod(HTTP_METH_POST);

$request->setQueryData(array(
  'recipeid' => 'f255af6f-9614-4fe2-aa8b-1b77b936d9d6'
));

$request->setHeaders(array(
  'content-type' => 'application/json'
));

$request->setBody('{
  "Sku": "my-prp-sku-1",
  "Name": "Pet Canvas",
  "Description": "Funny pet canvas",
  "Items": [
    {
      "ProductId": 43,
      "ProductVariantSku": "CanvsWrp-ImgWrp-10x10",
      "Preconfigurations": [
        {
          "Url": "https://placekitten.com/3000/3000"
        }
      ]
    }
  ],
  "Images": [
    {
      "Url": "https://placekitten.com/3000/3000",
    }
  ]
}');

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
<?php

$client = new http\Client;
$request = new http\Client\Request;

$body = new http\Message\Body;
$body->append('{
  "Sku": "my-prp-sku-1",
  "Name": "Pet Canvas",
  "Description": "Funny pet canvas",
  "Items": [
    {
      "ProductId": 43,
      "ProductVariantSku": "CanvsWrp-ImgWrp-10x10",
      "Preconfigurations": [
        {
          "Url": "https://placekitten.com/3000/3000"
        }
      ]
    }
  ],
  "Images": [
    {
      "Url": "https://placekitten.com/3000/3000",
    }
  ]
}');

$request->setRequestUrl('https://api.print.io/api/v/5/source/api/preconfiguredproducts/');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setQuery(new http\QueryString(array(
  'recipeid' => 'f255af6f-9614-4fe2-aa8b-1b77b936d9d6'
)));

$request->setHeaders(array(
  'content-type' => 'application/json'
));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
import http.client

conn = http.client.HTTPSConnection("api.print.io")

payload = "{\n  \"Sku\": \"my-prp-sku-1\",\n  \"Name\": \"Pet Canvas\",\n  \"Description\": \"Funny pet canvas\",\n  \"Items\": [\n    {\n      \"ProductId\": 43,\n      \"ProductVariantSku\": \"CanvsWrp-ImgWrp-10x10\",\n      \"Preconfigurations\": [\n        {\n          \"Url\": \"https://placekitten.com/3000/3000\"\n        }\n      ]\n    }\n  ],\n  \"Images\": [\n    {\n      \"Url\": \"https://placekitten.com/3000/3000\",\n    }\n  ]\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/api/v/5/source/api/preconfiguredproducts/?recipeid=f255af6f-9614-4fe2-aa8b-1b77b936d9d6", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "https://api.print.io/api/v/5/source/api/preconfiguredproducts/"

querystring = {"recipeid":"f255af6f-9614-4fe2-aa8b-1b77b936d9d6"}

payload = "{\n  \"Sku\": \"my-prp-sku-1\",\n  \"Name\": \"Pet Canvas\",\n  \"Description\": \"Funny pet canvas\",\n  \"Items\": [\n    {\n      \"ProductId\": 43,\n      \"ProductVariantSku\": \"CanvsWrp-ImgWrp-10x10\",\n      \"Preconfigurations\": [\n        {\n          \"Url\": \"https://placekitten.com/3000/3000\"\n        }\n      ]\n    }\n  ],\n  \"Images\": [\n    {\n      \"Url\": \"https://placekitten.com/3000/3000\",\n    }\n  ]\n}"
headers = {'content-type': 'application/json'}

response = requests.request("POST", url, data=payload, headers=headers, params=querystring)

print(response.text)
curl --request POST \
  --url 'https://api.print.io/api/v/5/source/api/preconfiguredproducts/?recipeid=f255af6f-9614-4fe2-aa8b-1b77b936d9d6' \
  --header 'content-type: application/json' \
  --data '{
  "Sku": "my-prp-sku-1",
  "Name": "Pet Canvas",
  "Description": "Funny pet canvas",
  "Items": [
    {
      "ProductId": 43,
      "ProductVariantSku": "CanvsWrp-ImgWrp-10x10",
      "Preconfigurations": [
        {
          "Url": "https://placekitten.com/3000/3000"
        }
      ]
    }
  ],
  "Images": [
    {
      "Url": "https://placekitten.com/3000/3000",
    }
  ]
}'
echo '{
  "Sku": "my-prp-sku-1",
  "Name": "Pet Canvas",
  "Description": "Funny pet canvas",
  "Items": [
    {
      "ProductId": 43,
      "ProductVariantSku": "CanvsWrp-ImgWrp-10x10",
      "Preconfigurations": [
        {
          "Url": "https://placekitten.com/3000/3000"
        }
      ]
    }
  ],
  "Images": [
    {
      "Url": "https://placekitten.com/3000/3000",
    }
  ]
}' |  \
  http POST 'https://api.print.io/api/v/5/source/api/preconfiguredproducts/?recipeid=f255af6f-9614-4fe2-aa8b-1b77b936d9d6' \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "Sku": "my-prp-sku-1",\n  "Name": "Pet Canvas",\n  "Description": "Funny pet canvas",\n  "Items": [\n    {\n      "ProductId": 43,\n      "ProductVariantSku": "CanvsWrp-ImgWrp-10x10",\n      "Preconfigurations": [\n        {\n          "Url": "https://placekitten.com/3000/3000"\n        }\n      ]\n    }\n  ],\n  "Images": [\n    {\n      "Url": "https://placekitten.com/3000/3000",\n    }\n  ]\n}' \
  --output-document \
  - 'https://api.print.io/api/v/5/source/api/preconfiguredproducts/?recipeid=f255af6f-9614-4fe2-aa8b-1b77b936d9d6'