Below is a workable curl request that our team tested:
"""
curl -H "X-Goog-Upload-Protocol: multipart" -H "multipart/related" -F"metadata=@/usr/local/google/home/test/Desktop/data/upload.txt;type=application/json" -F "image=@/usr/local/google/home/test/Desktop/testAsset.jpeg;type=image/jpeg" https://test.com:0000/upload/dfareporting/v4/userprofiles/000000/creativeAssets/000000/creativeAssets
"""
test:data$ cat upload.txt
{
"assetIdentifier": {
"name": "testAsset.jpeg",
"type": "HTML_IMAGE"
}
}
You may try on your end if it will work for you. Just know that I have replace some of the private information to test and other details as well as domain name, account id, profile id and asset id for privacy purposes. You may change that accordingly as necessary.
However, if it still does not work for you. We would highly recommend reaching out to developers specialist support team as they are the ones who maintains our client library and would be best route to assist you with node js samples.
![]() |
DCM API Team |