Make and other third-party services transport values in many different formats. It is important to know how to handle the value types of arrays, nulls, and empty strings.
It isn't possible to send empty array to a service. E.g. User wants to remove all tags from a task.
Let users decide what parameters they want to send to the service. Make has a feature to show how to process values. This feature allows users to define exactly how Make should behave when the value is "empty". For example, if a user defines that they want to send a specific field to a service even if the value is null , empty string, or an empty array, it will be sent to the service. In module communication, config passes parameters without any modification.
Date parameters
When a field is a type "date", it should be possible to use our keyword "now" as a value, which means, the field should accept ISO-8601 date format and if the service requires only the date (no time) or a different format like timestamp, this formatting should happen inside the module.
Users of the app should never be prompted to format the date inputs the way API requires! Such apps will not be approved by Make.
Parameter birthday is required to have format YYYY-MM-DD and parameter due_date is required to be a timestamp by the service, so the formatting happens inside the Communication part of the module.
The parameter due_date is an incorrect type and birthday is required to be formated by the user.
Query String (QS)
The query string parameters should be defined using the qs object in order not to be embedded directly in the URL. Embedded parameters are those parameters that are after a question mark.
This will enforce the correct encoding of both static and dynamic parameters.
If you need to specify a query string parameter, you can do:
But a better way is to use a special qs collection.
The headers, qs, and body collections represent request headers, query string parameters, and body payload. The key is the variable/header name and the value is the variable/header value. You don’t need to escape values inside those collections.