Setting Preview image with api #529
-
Using the patch part api, i managed to set an image as an attachment for a file. Is it possible to set the preview image of the the part using the api aswell? Seeing as the difference between parts with preview on / off is the existence of "master_picture_attachment" when getting the data of the part using the api, i tried setting that using the part patch api: "master_picture_attachment": [ But doing this gives me the following error: "propertyPath": "master_picture_attachment", What am i doing wrong here? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Working with attachments using API is currently quite limited (see issue #502 ). Also the preview picture should be one of the already existing attachments as part. So you should pass an IRI of an already existing attachment to the master_picture_attachment. |
Beta Was this translation helpful? Give feedback.
-
With Part-DB v1.11 it is possible to properly work with attachments via the API. You can also directly upload files or let Part-DB download files. |
Beta Was this translation helpful? Give feedback.
Working with attachments using API is currently quite limited (see issue #502 ).
Also the preview picture should be one of the already existing attachments as part. So you should pass an IRI of an already existing attachment to the master_picture_attachment.