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

Question

Question

API Export/Import

asked on September 29, 2022

I have been able to create an access token for the swagger playground and some calls work better than others. Getting information on an entry in the repository produces expected results but importing or exporting documents produce different errors. I have full rights assigned to the service principal. 

 

Exporting produces this error: 

"type": "unknown",

"title": "Export failed with reason: You do not have export rights to export."

Importing produces this error: 

"type": "itemNotFound",
"title": "Template not found. [9015]"

 

any thoughts on how the issue could be fixed will be appreciated

0 0

Answer

SELECTED ANSWER
replied on September 30, 2022

Hi,

For the export error, could you check the service principal Rights in the Repository Administration page? The Print/Export feature right should be enabled if you want to use the export api. More instructions on using the Repository Administration page can be found here. https://doc.laserfiche.com/laserfiche.documentation/en-us/Content/Privileges.htm

 

For the import error, it looks like you are using the import api to import a document and set a template on the document. Can you check if the template you are trying to set exists in the repository?

0 0
replied on September 30, 2022

Thank you for the feedback! I changed the repository administration principal rights and got rid of the template in the api call. Everything is working as expected. thanks again 

0 0

Replies

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

Sign in to reply to this post.