How to import an asset?
Hello, I'm trying to import a texture in Threekit through configuration api but I'm receiving a status 500 with the message: Internal Server Error when I send a post request
The fileId is correct, I got it by /files api
-
I was trying in different ways, just putting fileId and orgId properties but there wasn't success. Also I have the token put in there
0 -
Hi Lester, I believe there is a typo in our documentation. Can you attempt at the endpoint /api/asset-jobs/import instead of imports and let me know if that works?
0 -
Hello William, thank you. That's correct and also I have seen that for the request adding "s" at the end the structure must be as follows
export interface ThreekitJobFiles {
files: ThreekitImportFile[];
}
export interface ThreekitImportFile {
fileId: string;
orgId: string;
sync?: boolean;
settings?: ThreekitImportFileSettings;
parentFolderId?: string;
targetId?: string;
}0
Please sign in to leave a comment.
Comments
3 comments