# How to update the API Platform autogenerated types?

[API Platform](https://api-platform.com/) is a set of tools to build and consume web APIs via PHP.

The API Platform autogenerated interfaces are located in `frontend/src/types/api-platform`.

In order to update them, you just need to:

1. Delete the interfaces you want to update
2. Execute in local environment
3. Lint the files

```
cd frontend
rm -rf src/types/api-platform
NODE_TLS_REJECT_UNAUTHORIZED=0 npm init @api-platform/client https://localhost:8443 src/types/api-platform -- --generator typescript
npx eslint src/types/api-platform --fix
```


---

# 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.stooa.com/documentation/development/update-api-platform-types.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.
