How to store data from the panel in a collection?

Is there an example of how to save input to a collection from within the panel?

I would like to extend the panel. There are entered only data that will be used to use fields.

Example: locations with name, zip code, phone number, fax number, email, street, city.

This data should then be displayed as options for selection in the Select field.
It should also be possible to change or delete this data.

I guess the simplest way would be to store this data in a structure field somewhere, and then access that data from your select fields via options: query.
Here’s an example: Select | Kirby CMS

In the meantime I have decided to use the option with the API, but I do not get any output.

Link (Select | Kirby CMS)

departments:
  label: Departments
  type: select
  options: api
  api:
    url: "{{ site.url }}/source/departments.json"
    fetch: Departments
    text: "{{ item.title}}"
    value: "{{ item.title.slug }}"

api url is working and looks like:

{
  "Departments": [
    {
      "id": "bf4dd5f4-1aea-44af-a2df-a7cc2480bd03",
      "title": "TITLE OF DEPARTMENT",
      "description": "DESC OF DEPARTMENT"
    },
    {
      "id": "bf4dd5f4-1aea-44af-a2df-a7cc2480bd03",
      "title": "TITLE OF DEPARTMENT",
      "description": "DESC OF DEPARTMENT"
    },
    {
      "id": "bf4dd5f4-1aea-44af-a2df-a7cc2480bd03",
      "title": "TITLE OF DEPARTMENT",
      "description": "DESC OF DEPARTMENT"
    }
  ]
}

i use my api response into collection and it works now for me