View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Support us on Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - Attach file with API - ProjeQtOr
 

Attach file with API

More
21 Jun 2022 08:31 #1 by rafall92
Hello
I need to move some of our xml files to projeqtor, But we have a lot of files, so we want to do this via API. Is there any possibility to upload file to PQ with api, and link it to document?

Please Log in or Create an account to join the conversation.

More
21 Jun 2022 12:00 - 23 Jun 2022 09:28 #2 by Arkhanje
Replied by Arkhanje on topic Attach file with API
Hello

You can simply use the "data import" functionality directly in the solution.

Import a document version and use "importfile" to indicate the path of your xml file.
Make sure you have permissions to the PHP server

A little reading here  
Last edit: 23 Jun 2022 09:28 by Arkhanje.
The following user(s) said Thank You: rafall92

Please Log in or Create an account to join the conversation.

More
21 Jun 2022 12:28 #3 by rafall92
Replied by rafall92 on topic Attach file with API
I don't know if you understand me correctly. Lets say I create document in PQ manually, fill fields, and attach some files to it(pictures, database backups, etc.)

I wanna do the same, but using API

Please Log in or Create an account to join the conversation.

More
22 Jun 2022 10:38 #4 by babynus
Replied by babynus on topic Attach file with API
You cannot through API.
API only acceps data in JSON, without possibility to attach files.

You can do this through import, as  Arkhanje  explianed

Babynus
Administrator of ProjeQtOr web site
The following user(s) said Thank You: rafall92

Please Log in or Create an account to join the conversation.

More
22 Jun 2022 10:42 #5 by rafall92
Replied by rafall92 on topic Attach file with API
Ok. Uploaded files have their own ID. Is it possible to link previously uploaded file to document by their ID?

Please Log in or Create an account to join the conversation.

More
22 Jun 2022 12:28 #6 by babynus
Replied by babynus on topic Attach file with API
No, files for document versions are not managed the same way as attachments.

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.053 seconds

Cookies settings

×

Functional Cookies

Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.

Session

Please login to see yours activities!

Other cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.