REST API: Working with files: Difference between revisions
From Planfix
(Created page with "{{#seo: |title=REST API: Working with files |titlemode=append |keywords=planfix, api, rest, rest api, files, working with files, api working with files |description=REST API: Working with files }} The REST API of Planfix supports working with files *Attach and update *Get list of files == Attach and update == You can use the API to attach or update files that you have previously uploaded: *Tasks *#Contact...") |
|||
Line 61: | Line 61: | ||
*If the files field is not transferred, the files are not updated. | *If the files field is not transferred, the files are not updated. | ||
== | == Get a list of files == | ||
You can retrieve a list of files via the API: | You can retrieve a list of files via the API: | ||
*[[#Task|Task]] | *[[#Task|Task]] |
Revision as of 08:04, 26 March 2024
The REST API of Planfix supports working with files
Attach and update
You can use the API to attach or update files that you have previously uploaded:
Task
- Files are only attached or updated in the task description.
- Attach files to the description when creating a task:
- Update files in the task description:
Important:
- Files are replaced with those passed in the files parameter.
- If an empty field is passed, files are detached from the task and deleted if not used elsewhere.
- If the files field is not passed, files are not updated.
Contact
- Files are only attached or updated in the contact description.
- Attach files to the description when creating a contact:
- Update files in the contact description:
Important:
- Files are replaced with those passed in the files parameter.
- If an empty field is passed, files are detached from the contact and deleted if not used elsewhere.
- If the files field is not passed, files are not updated.
Project
- Files are only attached or updated in project documents.
- Attach files during project creation:
- Update files in the project:
Important:
- Files are replaced with those passed in the files parameter.
- If an empty field is passed, the files are removed from the project and deleted if not used elsewhere.
- If the files field is not transferred, the files are not updated.
Get a list of files
You can retrieve a list of files via the API:
Task
The method has a parameter onlyFromDescription, which allows you to retrieve files only from the task description:
Contact
The method has an onlyFromDescription parameter, which you can use to retrieve files from the contact description only:
Project
The method has the parameters pageSize and offset for page navigation through the list:
Go to
- [REST API]]
- API