Parameters
API methods that are "read-only" and return an array of data will typically support the following optional parameters. In the REST API these are query parameters. Below is a TypeScript representation useful for Foo's Node.js API client.
criteria
specifies sorting sequence as eitherascending
ordescending
.from
is a "from" date. This field can be any valid JavaScript date format.limit
can be used to specificy a limit to the number of results returned by the API.skip
can be helpful with pagination as it specifies a beginning index of results to return.sort
specifies a field to sort by used in tandem withcriteria
. Note that not all fields are supported for sort in the API.to
is a "to" date. This field can be any valid JavaScript date format.