Link platform photos as assets
curl --request POST \
--url https://www.carstoragesoftware.com/api/v1/marketing/assets/link-photos \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"photoIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"folderId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
photoIds: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
folderId: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
})
};
fetch('https://www.carstoragesoftware.com/api/v1/marketing/assets/link-photos', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://www.carstoragesoftware.com/api/v1/marketing/assets/link-photos"
payload = {
"photoIds": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"folderId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"data": {
"added": 123,
"skipped": 123
}
}{
"error": "<string>",
"code": "<string>",
"details": null
}{
"error": "<string>",
"code": "<string>",
"details": null
}{
"error": "<string>",
"code": "<string>",
"details": null
}{
"error": "<string>",
"code": "<string>",
"details": null
}Assets
Link platform photos as assets
Requires write:marketing-assets. Body { photoIds, folderId? } links existing platform photos into the asset library.
POST
/
api
/
v1
/
marketing
/
assets
/
link-photos
Link platform photos as assets
curl --request POST \
--url https://www.carstoragesoftware.com/api/v1/marketing/assets/link-photos \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"photoIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"folderId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
photoIds: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
folderId: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
})
};
fetch('https://www.carstoragesoftware.com/api/v1/marketing/assets/link-photos', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://www.carstoragesoftware.com/api/v1/marketing/assets/link-photos"
payload = {
"photoIds": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"folderId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"data": {
"added": 123,
"skipped": 123
}
}{
"error": "<string>",
"code": "<string>",
"details": null
}{
"error": "<string>",
"code": "<string>",
"details": null
}{
"error": "<string>",
"code": "<string>",
"details": null
}{
"error": "<string>",
"code": "<string>",
"details": null
}Was this page helpful?
⌘I