Automation

Save a recipe: one JSON that a person or an agent can read, edit, dry-run and run the same way every time

post/api/v1/recipes

Request

  • Base URL: https://philforms.com
  • URL: https://philforms.com/api/v1/recipes
  • Auth: HTTP bearer

Request body

namestring
form_idstring required
row_mode'each' | 'total'

each = one form per row (default); total = one form for the whole sheet

total_parameterstring[]

With row_mode total: parameters summed over the rows

sourceobject

{ type: "url", url, header? } (JSON or CSV) | { type: "csv", text } | { type: "static", row: [...] } — optional: a run may send its own rows

constantobject

Values on every document (a blank cell never overrides one)

file_name_fieldstring
as_ofstring

The documents' date (YYYY-MM-DD = midnight Asia/Manila); default: the run's day

Response

{ recipe }

Changes

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