patch https://api.safetyculture.io/documents/v1/
Updates an existing file in Documents, either its metadata or its content.
Use this endpoint to upload a new version of a file in Documents or update its metadata, such as the file name and description.
- Metadata-only update: No upload_url is returned and no media upload is required (for example, rename or change description).
- Replace content (new version): The response includes a temporary upload_url (valid for ~20 minutes). You must PUT the raw file bytes to that URL to complete the new version. The latest version replaces the old one in SafetyCulture, while previous versions stay in version history.
Requirements
- SafetyCulture Premium Plan or Enterprise Plan
- "Documents: Administration" permission
- Full seat
- "Edit" document access
You can upload files up to 50MB in DOCX, DOC, JPEG, JPG, PNG, PDF, XLS, and XLSX formats.