Skip to main content
PUT
Update Station

Authorizations

Authorization
string
header
required

An API key, sent as Authorization: Bearer <key>. Create one in the SWITCH Copilot under Settings → API keys (needs the API keys permission in your company), or with POST /auth/api-keys. The key is shown once, at creation.

Path Parameters

station_id
integer
required

ID of the station.

Body

application/json

Schema for partially updating a station.

Only provided fields are applied; omitted fields remain unchanged. Latitude and longitude are only applied when both are sent; send polygon: null to remove the boundary.

name
string | null

Updated name.

Example:

"Duomo"

address
string | null

Updated address.

Example:

"Piazza del Duomo, 20122 Milano MI"

max_capacity
integer | null

Updated max capacity.

Example:

20

latitude
number | null

New latitude; applied only together with longitude.

Example:

45.4642

longitude
number | null

New longitude; applied only together with latitude.

Example:

9.19

polygon
number[][] | null

New station area (closed ring of [longitude, latitude]).

Example:
company_slug
string | null

Move the station to another company you can manage.

Example:

"acme-mobility"

Response

Station updated successfully. Returns the updated station profile including coordinates, capacity, optional polygon boundary, and company ownership.

Public schema for a station resource.

Exposes station details to API consumers, including coordinates, capacity, optional polygon boundary, and company ownership.

id
integer
required

Unique ID.

Example:

1

name
string
required

Station name.

Example:

"Duomo"

address
string
required

Full address.

Example:

"Piazza del Duomo, 20122 Milano MI"

max_capacity
integer
required

Maximum number of vehicles the station holds.

Example:

20

latitude
number
required

Latitude.

Example:

45.4642

longitude
number
required

Longitude.

Example:

9.19

company_slug
string
required

Owning company slug.

Example:

"acme-mobility"

company_name
string
required

Owning company display name.

created_at
string<date-time>
required

Datetime when the record was created.

polygon
number[][] | null

Station area as a closed ring of [longitude, latitude] pairs; absent when the station has none.

Example:
updated_at
string<date-time> | null

Datetime when the record was last updated, if ever.