> For the complete documentation index, see [llms.txt](https://chekin.gitbook.io/chekin-public-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://chekin.gitbook.io/chekin-public-api/api-reference/stats/update-stat-account.md).

# Update Stat Account

The "Update Stat Account" endpoint allows for modifications to an existing statistical account. This capability is crucial for ensuring that account details remain current and accurate, reflecting any changes in reporting requirements, account credentials, or associated properties

### **Header Parameters:**

* **Authorization** *(string) <mark style="color:red;">**\***</mark>**Mandatory***\
  Required for authentication and authorization. You'll need to include a valid token here to access the Stats requests

### Path Parameters:

* **id** (*string, uuid*) *<mark style="color:red;">**\***</mark>**Mandatory***\
  The unique identifier of the statistical account to be updated

### Body Parameters:

* **type** (*string*)\
  The type of statistical account, which could indicate the specific service or entity it is associated with.
* **username** (*string*)\
  The username associated with the statistical account, used for login or identification purposes.
* **password** (*string*)\
  The password for the statistical account. Security practices should be observed when transmitting passwords.
* **external\_housing\_id** (*string, uuid*)\
  The identifier for housing or property associated with this account for statistical reporting.
* **external\_location\_id** (*string*)\
  An identifier that links the account to a specific location or region for targeted statistical analysis.
* **id\_camera** (*string*)
* **delay** (*string*)\
  Indicates if there's a scheduled delay for the submission of statistical data.
* **local\_send\_time** (*string, hour*)\
  The preferred time of day for sending data to the statistical body, formatted as an hour.
* **send\_mode** (*string*)\
  Defines the mode or method of data transmission (e.g., automatic, manual).
* **housing** (*string, uuid*)\
  Identifier for the housing on Chekin

{% openapi src="/files/2YNWdcD7SWYAbJN2lC4R" path="/stat-accounts/{id}" method="patch" %}
[Chekin-Chekin-1.0.0-resolved.json](https://3564732132-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfAJzL2tAGO9ZwOToBa0R%2Fuploads%2Fgit-blob-0641a0e07e27281f11fe82de446c7229bfe15c1e%2FChekin-Chekin-1.0.0-resolved.json?alt=media)
{% endopenapi %}
