Create a GPS source
POST/api/v1/gps/sources
Creates a GPS source that a tracker app can send data to. Basic-auth sources (OwnTracks, GPSLogger, Colota) need a username and password; token sources (Overland, Traccar, Home Assistant, Dawarich) need a token. A Home Assistant source for the GeoPulse Home Assistant integration uses a personal API token instead: pass apiTokenId to connect an existing token with the gps:ingest scope, or newApiToken to create one (its secret is returned once in apiTokenSecret).
Access: Any signed-in user, with a session or an API token.
Request
Responses
- 201
- 400
- 401
- 403
GPS source created
Bad Request
Authentication is required or the provided credentials are invalid.
The authenticated user does not have permission to access this resource.