Add the power of the Box AI API to your custom apps at Content Cloud Summit on May 15

Learn more and register!

Metadata field filter (date range)

Specifies which date field on the template to filter the search results by, specifying a range of dates that can match.

object
{"lt":"2017-08-01T00:00:00Z","gt":"2016-08-01T00:00:00Z"}

Match a date metadata field to a range of values.

string / date-time
2016-08-01T00:00:00Z

Specifies the (inclusive) lower bound for the metadata field value. The value of a field must be greater than (gt) or equal to this value for the search query to match this template.

string / date-time
2017-08-01T00:00:00Z

Specifies the (inclusive) upper bound for the metadata field value. The value of a field must be lower than (lt) or equal to this value for the search query to match this template.

Response Example

{
  "expirationDate": {
    "lt": "2017-08-01T00:00:00Z",
    "gt": "2016-08-01T00:00:00Z"
  }
}