forms

Attach file to form field from URL

Uploads a file from a public URL into Coperniq and attaches it to a specific FILE-type field on the form.

post/forms/{form_id}/fields/file-from-url

Request

  • Base URL: https://api.coperniq.io/v1
  • URL: https://api.coperniq.io/v1/forms/{form_id}/fields/file-from-url
  • Auth: API key in header x-api-key

Path parameters

form_idinteger required

Form identifier

Request body

columnIdinteger required

ID of the FILE-type field to attach the uploaded file to.

urlstring uri required

Public URL of the file to upload.

namestring

Optional display name for the uploaded file.

projectIdinteger

Optional project ID to associate with the file. This will add the file to the project's 'Docs' section at the root level.

action'add' | 'replace'

Whether to append to existing files (add) or replace them entirely (replace). Defaults to add.

Response

File uploaded and attached successfully

successboolean
fileIdinteger
formIdinteger
columnIdinteger
projectIdinteger nullable
actionstring

Changes

No recorded changes to this operation across all 1 revision of this API.