Jump to content

Add a file to post with REST


Go to solution Solved by Daniel F,

Recommended Posts

Hi,

I try to POST a post to invision community with an attachment with REST API. So storing the post itself with content is no problem, but how to add the attachment? I had a look for an existing post with attachment and GET it via REST and the attachment looks like:
 

<a href="https://my.url/uploads/monthly_2024_09/myfilename.jpg" class="ipsAttachLink ipsAttachLink_image" data-fileid="35" data-fullurl="https://my.url/uploads/monthly_2024_09/myfilename.jpg" data-ipslightbox="" data-ipslightbox-group="g30231"><img data-fileid="35" src="https://my.url/uploads/monthly_2024_09/myfilename.jpg" data-src="https://my.url/uploads/monthly_2024_09/myfilename.jpg" data-ratio="112.36" width="534" class="ipsImage ipsImage_thumbnailed" alt="myfilename.jpg" style="height: auto;" data-loaded="true"></a>

I found a /api/downloads/files documentation and all search results here in forum also guides to this path, but I do not have the "downloads"-component and I just get: "errorMessage""INVALID_APP" when I try to access HTTP GET https://my.url/api/downloads/files

Is there anything I miss? 

Edited by Carl Zeiss GOM Metrology
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...