You are viewing limited content. For full access, please sign in.

Question

Question

Create new Entry without selecting file in API Self hosted not working

asked on August 3, 2023

Hello all 

I tried to create new entry using API Self hosted without selecting file but not working.

/v1/Repositories/{repoId}/Entries/{parentEntryId}/{fileName} //Creates a new document in a folder.

Method Post 

It's working only when I select file with template name.

 

0 0

Answer

SELECTED ANSWER
replied on August 4, 2023

If the goal is to create an empty doc as workaround you can use a zero bytes text file and the API will create a new document. This should work with or without template assignment.

0 0
replied on August 5, 2023

Thank you Varna,

 I will try  yiur workaround .

0 0

Replies

replied on August 3, 2023

Isaac,

The API does not support creating empty documents through the API.  If that is what you are trying to do, you'd need to create the document first, then upload via the API.

 

Andrew

0 0
replied on August 5, 2023

Thank you, Andrew,

I am moving from LF SDK to API , in SDK it's available, so I wonder why not available in API. 

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.