SmartGare
API referenceEndpoints

Give the station its logo

Keeps the logo in place of any kept before, exactly as given: a PNG or a JPEG, recognised by its bytes, of at most 128 KiB and 1024 pixels a side, which reads whole — the limits of the station bridge, which prints it on the tickets. **Required permission:** `referential.station:write`

PUT/referential/v1/stations/{stationId}/logo

Keeps the logo in place of any kept before, exactly as given: a PNG or a JPEG, recognised by its bytes, of at most 128 KiB and 1024 pixels a side, which reads whole — the limits of the station bridge, which prints it on the tickets.

Required permission: referential.station:write

AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

body*ReplaceStationLogoRequest

Response Body

*/*

curl -X PUT "https://example.com/referential/v1/stations/{stationId}/logo" \  -H "Content-Type: application/json" \  -d '{    "image": "string"  }'
{  "byte_count": 0,  "height": 0,  "media_type": "string",  "station_id": "string",  "updated_at": "2019-08-24T14:15:22Z",  "updated_by": "string",  "width": 0}