LayerProof icon

LayerProof

Automate LayerProof public API workflows from n8n

Project File → Prepare Update

AI-generated

Summary

Prepares an upload URL for updating a project file at a specified path within a project directory.

Inputs

  • projectId (required) — Identifier of the project containing the file.
  • directoryId (required) — Identifier of the directory containing the file.
  • path (required) — Path inside the project directory where the file resides.
  • prepareUpdateOptions — Optional fields for the update, including MIME type and size.

Output shape

API response from the prepare-update endpoint, typically containing upload URL or confirmation details for the project file update.

The operation sends a POST request to /api/v2/projects/{projectId}/directories/{directoryId}/files/prepare-update with body { path, mimeType: optionalString(prepareUpdateOptions.mimeType), size: prepareUpdateOptions.size }.

Examples

Example 1: Update a slide image within a project

Set projectId to the target project, directoryId to the relevant directory, path to the file location, and optionally adjust mimeType/size via prepareUpdateOptions if the file type or size is changing.

Links

Discussion