LiquidPlanner Classic Forum
Upload a document via API
over 5 years ago by LiquidPlanner Support(edited)
Posted on behalf of Damian Sima. Original posting date 2013-05-13
I'm trying to create a document through your API, not really sure if the functionality is available.
I'm hitting this URL: https://app.liquidplanner.com/api/workspaces/xxxxx/documents
And Posting this as payload:
{ "Document": { "created_at":null,"created_by":null,"file_name":"afilename.docx","description":"fake document description","item_id":xxxxxxx,"updated_at":null,"updated_by":null,"id":null,"children":[],"type":"Document" }}
And I'm getting this error:
{"type":"Error","error":"BadRequest","message":"Bad request, modify before retrying."}
I'm actually not sending a document, just the json entity.
I suppose, if this is available, the document should be send in the post and the post should be a multipart message but I'm guessing here for I've failed to find an example on how to do this.