Part thumbnail with rest api

I’m having trouble linking an image file uploaded to the vault to the part thumbnail using the rest api. Does anyone know what the body of a patch request needs to be to set the image file_id as the thumbnail of a part?

Parents
  • I cannot tell you the exact body (cause it can have various formats..), but the thumbnail property behaves like every other regular property. So when you are able to edit the "description" or "name" of a Part, you should also be able to update the thumbnail.

    You just need to provide the correct string for the thumbnail. It contains the path to the codetree or vault directory. If you have a vaulted image, you need the file id.

    The content for your property looks something like this: vault:///?fileId=123ABCDEF....

    Angela

Reply
  • I cannot tell you the exact body (cause it can have various formats..), but the thumbnail property behaves like every other regular property. So when you are able to edit the "description" or "name" of a Part, you should also be able to update the thumbnail.

    You just need to provide the correct string for the thumbnail. It contains the path to the codetree or vault directory. If you have a vaulted image, you need the file id.

    The content for your property looks something like this: vault:///?fileId=123ABCDEF....

    Angela

Children