curl --request POST \
--url https://api.occtoo.com/v1/assets/{dataSourceId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"assets": [
{
"entryKey": "sku-1",
"filename": "front.jpg",
"properties": [
{
"id": "title",
"language": "en",
"value": "Blue chair"
},
{
"id": "title",
"language": "sv",
"value": "Blå stol"
},
{
"id": "sku",
"value": "CH-001"
},
{
"id": "tags",
"value": [
"summer",
"outdoor"
]
},
{
"id": "width",
"value": 640
},
{
"id": "price",
"value": 1299.5
},
{
"id": "published",
"value": true
},
{
"id": "shotAt",
"value": "2026-09-30T10:00:00Z"
},
{
"id": "features",
"language": "en",
"value": [
"stackable"
]
}
]
},
{
"entryKey": "sku-2",
"filename": "back.jpg"
}
]
}
'import requests
url = "https://api.occtoo.com/v1/assets/{dataSourceId}"
payload = { "assets": [
{
"entryKey": "sku-1",
"filename": "front.jpg",
"properties": [
{
"id": "title",
"language": "en",
"value": "Blue chair"
},
{
"id": "title",
"language": "sv",
"value": "Blå stol"
},
{
"id": "sku",
"value": "CH-001"
},
{
"id": "tags",
"value": ["summer", "outdoor"]
},
{
"id": "width",
"value": 640
},
{
"id": "price",
"value": 1299.5
},
{
"id": "published",
"value": True
},
{
"id": "shotAt",
"value": "2026-09-30T10:00:00Z"
},
{
"id": "features",
"language": "en",
"value": ["stackable"]
}
]
},
{
"entryKey": "sku-2",
"filename": "back.jpg"
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
assets: [
{
entryKey: 'sku-1',
filename: 'front.jpg',
properties: [
{id: 'title', language: 'en', value: 'Blue chair'},
{id: 'title', language: 'sv', value: 'Blå stol'},
{id: 'sku', value: 'CH-001'},
{id: 'tags', value: ['summer', 'outdoor']},
{id: 'width', value: 640},
{id: 'price', value: 1299.5},
{id: 'published', value: true},
{id: 'shotAt', value: '2026-09-30T10:00:00Z'},
{id: 'features', language: 'en', value: ['stackable']}
]
},
{entryKey: 'sku-2', filename: 'back.jpg'}
]
})
};
fetch('https://api.occtoo.com/v1/assets/{dataSourceId}', 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.occtoo.com/v1/assets/{dataSourceId}",
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([
'assets' => [
[
'entryKey' => 'sku-1',
'filename' => 'front.jpg',
'properties' => [
[
'id' => 'title',
'language' => 'en',
'value' => 'Blue chair'
],
[
'id' => 'title',
'language' => 'sv',
'value' => 'Blå stol'
],
[
'id' => 'sku',
'value' => 'CH-001'
],
[
'id' => 'tags',
'value' => [
'summer',
'outdoor'
]
],
[
'id' => 'width',
'value' => 640
],
[
'id' => 'price',
'value' => 1299.5
],
[
'id' => 'published',
'value' => true
],
[
'id' => 'shotAt',
'value' => '2026-09-30T10:00:00Z'
],
[
'id' => 'features',
'language' => 'en',
'value' => [
'stackable'
]
]
]
],
[
'entryKey' => 'sku-2',
'filename' => 'back.jpg'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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.occtoo.com/v1/assets/{dataSourceId}"
payload := strings.NewReader("{\n \"assets\": [\n {\n \"entryKey\": \"sku-1\",\n \"filename\": \"front.jpg\",\n \"properties\": [\n {\n \"id\": \"title\",\n \"language\": \"en\",\n \"value\": \"Blue chair\"\n },\n {\n \"id\": \"title\",\n \"language\": \"sv\",\n \"value\": \"Blå stol\"\n },\n {\n \"id\": \"sku\",\n \"value\": \"CH-001\"\n },\n {\n \"id\": \"tags\",\n \"value\": [\n \"summer\",\n \"outdoor\"\n ]\n },\n {\n \"id\": \"width\",\n \"value\": 640\n },\n {\n \"id\": \"price\",\n \"value\": 1299.5\n },\n {\n \"id\": \"published\",\n \"value\": true\n },\n {\n \"id\": \"shotAt\",\n \"value\": \"2026-09-30T10:00:00Z\"\n },\n {\n \"id\": \"features\",\n \"language\": \"en\",\n \"value\": [\n \"stackable\"\n ]\n }\n ]\n },\n {\n \"entryKey\": \"sku-2\",\n \"filename\": \"back.jpg\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.occtoo.com/v1/assets/{dataSourceId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"assets\": [\n {\n \"entryKey\": \"sku-1\",\n \"filename\": \"front.jpg\",\n \"properties\": [\n {\n \"id\": \"title\",\n \"language\": \"en\",\n \"value\": \"Blue chair\"\n },\n {\n \"id\": \"title\",\n \"language\": \"sv\",\n \"value\": \"Blå stol\"\n },\n {\n \"id\": \"sku\",\n \"value\": \"CH-001\"\n },\n {\n \"id\": \"tags\",\n \"value\": [\n \"summer\",\n \"outdoor\"\n ]\n },\n {\n \"id\": \"width\",\n \"value\": 640\n },\n {\n \"id\": \"price\",\n \"value\": 1299.5\n },\n {\n \"id\": \"published\",\n \"value\": true\n },\n {\n \"id\": \"shotAt\",\n \"value\": \"2026-09-30T10:00:00Z\"\n },\n {\n \"id\": \"features\",\n \"language\": \"en\",\n \"value\": [\n \"stackable\"\n ]\n }\n ]\n },\n {\n \"entryKey\": \"sku-2\",\n \"filename\": \"back.jpg\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.occtoo.com/v1/assets/{dataSourceId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"assets\": [\n {\n \"entryKey\": \"sku-1\",\n \"filename\": \"front.jpg\",\n \"properties\": [\n {\n \"id\": \"title\",\n \"language\": \"en\",\n \"value\": \"Blue chair\"\n },\n {\n \"id\": \"title\",\n \"language\": \"sv\",\n \"value\": \"Blå stol\"\n },\n {\n \"id\": \"sku\",\n \"value\": \"CH-001\"\n },\n {\n \"id\": \"tags\",\n \"value\": [\n \"summer\",\n \"outdoor\"\n ]\n },\n {\n \"id\": \"width\",\n \"value\": 640\n },\n {\n \"id\": \"price\",\n \"value\": 1299.5\n },\n {\n \"id\": \"published\",\n \"value\": true\n },\n {\n \"id\": \"shotAt\",\n \"value\": \"2026-09-30T10:00:00Z\"\n },\n {\n \"id\": \"features\",\n \"language\": \"en\",\n \"value\": [\n \"stackable\"\n ]\n }\n ]\n },\n {\n \"entryKey\": \"sku-2\",\n \"filename\": \"back.jpg\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"initialized": {
"sku-1": {
"uploadUrl": "https://occtoomedia.blob.core.windows.net/6b1f0b3c/9c2a7d18/front.jpg?sv=2024-11-04&se=...&sig=...",
"expiresAt": "2026-09-25T13:30:00+00:00"
},
"sku-2": {
"uploadUrl": "https://occtoomedia.blob.core.windows.net/6b1f0b3c/1e77a904/back.jpg?sv=2024-11-04&se=...&sig=...",
"expiresAt": "2026-09-25T13:30:00+00:00"
}
},
"failed": {}
}Initialize assets and get links to upload them to
Registers assets against the data source and returns one signed upload link per entry key. At most 100 assets per call. An entry key that already has an asset fails the whole call with 409 — use PUT to create or replace.
PUT the file bytes to the link. They go straight to Azure Blob Storage and never pass through Occtoo, so no Occtoo request-size ceiling applies to the upload. Call /complete once the PUT returns.
An entry key that couldn’t be initialized comes back under failed with the reason; the rest of the batch still succeeds. Links expire — use /uploadLinks to sign an entry key that was already initialized.
folderId places the new assets in that folder of the data source; omit it to use the data source’s root folder. List the folders with GET /v1/sources/{sourceId}/folders on the Configuration API; the id it returns is the value folderId takes.
Properties
An asset can carry properties, the same rows typed source ingest takes: one { "id", "value" } per property, and for a localized property one per language with "language" set. Each value is plain JSON, read as the type the property is configured with:
| Property type | JSON value |
|---|---|
| Text, or no type | string |
| Integer | whole number in the 64-bit range |
| Decimal | number |
| Boolean | true or false |
| Timestamp | ISO-8601 string with an offset, or an RFC 1123 string, stored as sent |
| List | array of strings |
| LocalizedText | string, with language |
| LocalizedList | array of strings, with language |
null clears the value, for a localized property in that row’s language. Initialize always creates the entry, so a null leaves it empty.
- Each property must already exist on the data source. Create it before initializing an asset that uses it. List elements can’t contain the property’s delimiter.
- Property ids are matched case-insensitively and can’t start with the reserved
occtoosysprefix. A property can appear once per language. - Language codes are 2–10 characters.
A property that breaks these rules fails the whole call before anything is written. The 400 lists every failure under assets[<index>].properties[<index>].
curl --request POST \
--url https://api.occtoo.com/v1/assets/{dataSourceId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"assets": [
{
"entryKey": "sku-1",
"filename": "front.jpg",
"properties": [
{
"id": "title",
"language": "en",
"value": "Blue chair"
},
{
"id": "title",
"language": "sv",
"value": "Blå stol"
},
{
"id": "sku",
"value": "CH-001"
},
{
"id": "tags",
"value": [
"summer",
"outdoor"
]
},
{
"id": "width",
"value": 640
},
{
"id": "price",
"value": 1299.5
},
{
"id": "published",
"value": true
},
{
"id": "shotAt",
"value": "2026-09-30T10:00:00Z"
},
{
"id": "features",
"language": "en",
"value": [
"stackable"
]
}
]
},
{
"entryKey": "sku-2",
"filename": "back.jpg"
}
]
}
'import requests
url = "https://api.occtoo.com/v1/assets/{dataSourceId}"
payload = { "assets": [
{
"entryKey": "sku-1",
"filename": "front.jpg",
"properties": [
{
"id": "title",
"language": "en",
"value": "Blue chair"
},
{
"id": "title",
"language": "sv",
"value": "Blå stol"
},
{
"id": "sku",
"value": "CH-001"
},
{
"id": "tags",
"value": ["summer", "outdoor"]
},
{
"id": "width",
"value": 640
},
{
"id": "price",
"value": 1299.5
},
{
"id": "published",
"value": True
},
{
"id": "shotAt",
"value": "2026-09-30T10:00:00Z"
},
{
"id": "features",
"language": "en",
"value": ["stackable"]
}
]
},
{
"entryKey": "sku-2",
"filename": "back.jpg"
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
assets: [
{
entryKey: 'sku-1',
filename: 'front.jpg',
properties: [
{id: 'title', language: 'en', value: 'Blue chair'},
{id: 'title', language: 'sv', value: 'Blå stol'},
{id: 'sku', value: 'CH-001'},
{id: 'tags', value: ['summer', 'outdoor']},
{id: 'width', value: 640},
{id: 'price', value: 1299.5},
{id: 'published', value: true},
{id: 'shotAt', value: '2026-09-30T10:00:00Z'},
{id: 'features', language: 'en', value: ['stackable']}
]
},
{entryKey: 'sku-2', filename: 'back.jpg'}
]
})
};
fetch('https://api.occtoo.com/v1/assets/{dataSourceId}', 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.occtoo.com/v1/assets/{dataSourceId}",
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([
'assets' => [
[
'entryKey' => 'sku-1',
'filename' => 'front.jpg',
'properties' => [
[
'id' => 'title',
'language' => 'en',
'value' => 'Blue chair'
],
[
'id' => 'title',
'language' => 'sv',
'value' => 'Blå stol'
],
[
'id' => 'sku',
'value' => 'CH-001'
],
[
'id' => 'tags',
'value' => [
'summer',
'outdoor'
]
],
[
'id' => 'width',
'value' => 640
],
[
'id' => 'price',
'value' => 1299.5
],
[
'id' => 'published',
'value' => true
],
[
'id' => 'shotAt',
'value' => '2026-09-30T10:00:00Z'
],
[
'id' => 'features',
'language' => 'en',
'value' => [
'stackable'
]
]
]
],
[
'entryKey' => 'sku-2',
'filename' => 'back.jpg'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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.occtoo.com/v1/assets/{dataSourceId}"
payload := strings.NewReader("{\n \"assets\": [\n {\n \"entryKey\": \"sku-1\",\n \"filename\": \"front.jpg\",\n \"properties\": [\n {\n \"id\": \"title\",\n \"language\": \"en\",\n \"value\": \"Blue chair\"\n },\n {\n \"id\": \"title\",\n \"language\": \"sv\",\n \"value\": \"Blå stol\"\n },\n {\n \"id\": \"sku\",\n \"value\": \"CH-001\"\n },\n {\n \"id\": \"tags\",\n \"value\": [\n \"summer\",\n \"outdoor\"\n ]\n },\n {\n \"id\": \"width\",\n \"value\": 640\n },\n {\n \"id\": \"price\",\n \"value\": 1299.5\n },\n {\n \"id\": \"published\",\n \"value\": true\n },\n {\n \"id\": \"shotAt\",\n \"value\": \"2026-09-30T10:00:00Z\"\n },\n {\n \"id\": \"features\",\n \"language\": \"en\",\n \"value\": [\n \"stackable\"\n ]\n }\n ]\n },\n {\n \"entryKey\": \"sku-2\",\n \"filename\": \"back.jpg\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.occtoo.com/v1/assets/{dataSourceId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"assets\": [\n {\n \"entryKey\": \"sku-1\",\n \"filename\": \"front.jpg\",\n \"properties\": [\n {\n \"id\": \"title\",\n \"language\": \"en\",\n \"value\": \"Blue chair\"\n },\n {\n \"id\": \"title\",\n \"language\": \"sv\",\n \"value\": \"Blå stol\"\n },\n {\n \"id\": \"sku\",\n \"value\": \"CH-001\"\n },\n {\n \"id\": \"tags\",\n \"value\": [\n \"summer\",\n \"outdoor\"\n ]\n },\n {\n \"id\": \"width\",\n \"value\": 640\n },\n {\n \"id\": \"price\",\n \"value\": 1299.5\n },\n {\n \"id\": \"published\",\n \"value\": true\n },\n {\n \"id\": \"shotAt\",\n \"value\": \"2026-09-30T10:00:00Z\"\n },\n {\n \"id\": \"features\",\n \"language\": \"en\",\n \"value\": [\n \"stackable\"\n ]\n }\n ]\n },\n {\n \"entryKey\": \"sku-2\",\n \"filename\": \"back.jpg\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.occtoo.com/v1/assets/{dataSourceId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"assets\": [\n {\n \"entryKey\": \"sku-1\",\n \"filename\": \"front.jpg\",\n \"properties\": [\n {\n \"id\": \"title\",\n \"language\": \"en\",\n \"value\": \"Blue chair\"\n },\n {\n \"id\": \"title\",\n \"language\": \"sv\",\n \"value\": \"Blå stol\"\n },\n {\n \"id\": \"sku\",\n \"value\": \"CH-001\"\n },\n {\n \"id\": \"tags\",\n \"value\": [\n \"summer\",\n \"outdoor\"\n ]\n },\n {\n \"id\": \"width\",\n \"value\": 640\n },\n {\n \"id\": \"price\",\n \"value\": 1299.5\n },\n {\n \"id\": \"published\",\n \"value\": true\n },\n {\n \"id\": \"shotAt\",\n \"value\": \"2026-09-30T10:00:00Z\"\n },\n {\n \"id\": \"features\",\n \"language\": \"en\",\n \"value\": [\n \"stackable\"\n ]\n }\n ]\n },\n {\n \"entryKey\": \"sku-2\",\n \"filename\": \"back.jpg\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"initialized": {
"sku-1": {
"uploadUrl": "https://occtoomedia.blob.core.windows.net/6b1f0b3c/9c2a7d18/front.jpg?sv=2024-11-04&se=...&sig=...",
"expiresAt": "2026-09-25T13:30:00+00:00"
},
"sku-2": {
"uploadUrl": "https://occtoomedia.blob.core.windows.net/6b1f0b3c/1e77a904/back.jpg?sv=2024-11-04&se=...&sig=...",
"expiresAt": "2026-09-25T13:30:00+00:00"
}
},
"failed": {}
}Authorizations
Path Parameters
Was this page helpful?