# Active Days (API)

### Intro to Active Days

When historical demand data is sent to Paqtana via the API, Paqtana distinguishes between two types of data for a date-item:

* If a value is 0 or greater than 0, it is considered a business day for the organization. This is taken into account when calculating averages.
* If no value is sent for a date-item, or if the sent value is null, Paqtana assumes that there was no opening on that day, meaning it was not an active day (i.e. business day).

To avoid the need to send data for active days where the demand value is equal to 0, Paqtana allows configuring which days are active days in an organization. This way, if the API doesn't receive data for an active day, it will assume a value of 0, and if it wasn't a active day, it will assume a null in the final calculation.

### **Setup via API**

To configure this option, the API client must send their desired configuration to the endpoint:

```
PUT /v2/org/{org}/active-days
```

The existing configuration can be retrieved with a GET request to the same endpoint. The JSON structure to be sent for the configuration and more details can be found in: [Active Days - Rest API](https://api.paqtana.com/v2/docs#/Active%20Days).

### Additional Notes

* If data is sent for a day of the week that was configured as an inactive day, Paqtana will still include this value in its calculations, meaning for that particular date, it will be considered an active day.<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.paqtana.com/en/guides/active-days-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
