> ## Documentation Index
> Fetch the complete documentation index at: https://docs.activeviam.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Date roll

> How the AsOfDate drives limit evaluation in Atoti Limits, including how it filters limits by StartDate and EndDate, and how to roll the date using the LimitsAsOfDateRestService REST endpoint

Atoti Limits uses the [asOfDate.csv](../user-ref/input-files/as_of_date) file to roll the date. This file sets the asOfDate for the application. The asOfDate is used for evaluating limits against connected Atoti servers.

The application assumes there is one AsOfDate. Every start of the business date, Atoti Limits expects the clients to send in as\_of\_date.csv with the new date to roll over the AsOfDate.

Atoti Limits uses the AsOfDate during the evaluation against the business cubes. It first queries the valid limits where StartDate \<= AsOfDate \<= EndDate then composes the MDX queries with the AsOfDate against the business cubes.

## Trigger a date roll via REST

The AsOfDate value of the Limits cube can be changed with LimitsAsOfDateRestService, which contains a `/set` endpoint. This endpoint
changes the AsOfDate value for the Limits cube.

* REST endpoint: `/limits/rest/v2/asOfDate/set`
* Method: POST
* Parameters:
  * name: `date`
* Example Endpoint: `http://localhost:3090/limits/rest/v2/asOfDate/set?date=2018-09-28`
