Copy link to clipboard
Copied
Hello, I am trying to go through document generation
I have generated link to upload an asset
I have uploaded asset here
I try to verify if asset is saved, but I get not found:
Also, I get asset not found when trying to generate doc with newly created asset
What could be the problem?
Copy link to clipboard
Copied
It looks like you tried to get the asset ID, not the uploadURI. At least from what I see in your screenshot.
Copy link to clipboard
Copied
Thanks for your response Raymond. Still not sure what you meant. I am following the documentation.
Could you explain further please?
Copy link to clipboard
Copied
When you created the asset, the JSON response included an uploadUri and assetID. You uploaded to the uploadUri. You then did a GET request to a URL that includes the assetID. You should do a GET request to uploadUri.
Copy link to clipboard
Copied
A get request to the uri returns a 403 for me
Copy link to clipboard
Copied
You need to pass authorization heades along as well.
Copy link to clipboard
Copied
Thanks a lot Raymond. However, I already tried that earlier, it returned a 400.
Copy link to clipboard
Copied
Thank you!
Copy link to clipboard
Copied
You know, I just realized something - I think I'm wrong. Looking at the docs for GET, https://developer.adobe.com/document-services/docs/apis/#tag/Assets/operation/asset.get, you DO use the asset id as you had, AND you pass the auth info.
Copy link to clipboard
Copied
Thanks Raymond. Tried it, its returning a 404.
I would love to generate some documents through the api. I would greatly appreciate if I can achieve that.
Copy link to clipboard
Copied
To be clear, you don't need to GET the asset. Once you created it and uploaded it, you create a Document Generation job using the asset ID. While doing a GET should work, it's not required. Does that make sense?
Copy link to clipboard
Copied
Thanks Raymond, I understand.
But I still have a blocker. When generating a document, process runs successfully. I get download link, however I noticed the document is not populated with data.
The placeholders are intact and the json sent is valid and proper.
Copy link to clipboard
Copied
Can you post your JSON as an attachment, as wlel as your Word doc and the last PDF output, all as attachments?
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Where is the PDF output? I see two Word docs attached, not the PDF. Are you downloading the right bits? Be sure to get the URL from polling the job. When it's down, it has the URL pointing to the result PDF.
This video shows the entire Postman process of using our APIs: https://www.youtube.com/watch?v=WehK1LprK9k
Copy link to clipboard
Copied
Thanks Raymond, the attached video has helped me with missing bits - I was able to get the doc generated as expected. I would spend some more time going through the docs and testing stuff out.
Thanks
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more