FruxonDocs
Agent NetworkTriggers

Tries an expression on one value.

Applies the expression to the value and returns the result. Nothing is saved and nothing outside the server is called. An expression that does not parse, or names anything but a listed function, is refused with `400`. A valid expression that cannot make anything of this value (text that is not a date, say) answers `200` with `problem` set.

POST
/v1/transformFunctions:test
AuthorizationBearer <token>

JWT Authorization header using the Bearer scheme. Enter 'Bearer' [space] and then your token.

In: header

The expression, the value, and optionally a default time zone.

expression*string

The expression, e.g. datetime.to_date('Asia/Jerusalem').

value*string

The value to pipe into it, as text.

timezone?string|null

Time zone (IANA name) for a conversion that takes one and names none.

[key: string]?never

Response Body

curl -X POST "https://api.fruxon.com/v1/transformFunctions:test" \  -H "Content-Type: application/json" \  -d '{    "expression": "string",    "value": "string"  }'
{
  "value": "string",
  "problem": "string"
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}
Empty