API POI PUT retourne 401 Unauthorized + internal error malgré PAT valide

Bonjour à tous,

Je suis en train d’importer des POI (casernes de pompiers) via l’API REST sur SIM Dispatcher (v4 ou récente).

J’ai un PAT valide (j’arrive à appeler /api/public/v1/enum?type=PoiCategory et j’obtiens bien les catégories, dont 14 pour FireStation/caserne).

Mais quand je fais un PUT sur /api/public/v1/poi (ou variantes sans /public), je reçois systématiquement :

401 Unauthorized

  • réponse : {„error“:1,„message“:„An internal server error has occurred.“}

J’ai essayé :

  • Plusieurs PAT neufs (générés aujourd’hui)

  • Sans champ „address“ (juste name, category:14, lat, lon)

  • Avec „country“:„FR“, „addressDistrict“:„Grand Est“

  • En curl, Postman, et script Python (requests)

  • PUT et POST

Toujours 401 + internal error.

Je suis connecté sur le site, j’ai accès aux liens OpenAPI Dashboard-Services et Realm-Services, mais /docs/rest/ me donne 404 même logué.

Est-ce que la création de POI nécessite un rôle spécial (admin/développeur) ou un scope particulier sur le PAT ?
Ou est-ce que „address“ doit être remplacé par „addressId“ (et comment l’obtenir) ?

Merci d’avance pour votre aide !

It appears that you have been referencing an older version of our documentation. We have recently updated the API, and some of the endpoints or structures you are currently using may have changed. Please find the most up-to-date information at the following links:

Regarding the POI endpoints specifically: while our C# SDK and TypeScript libraries are already available, the actual API endpoints will be enabled with Patch 4.5.0 (currently 4.4.*).

Patch 4.5.0 is scheduled to be deployed to the staging environment this week. If everything runs smoothly on staging, the patch will be pushed to the regular production servers next week.