Stations

Change a station

PATCH/stations/{station}

Changes the fields that the body carries, keeps the others, and returns the station. The path names the station by its id, or by its code with by=code. A code in the body is the station's new code.

Request Headers

Bearer <token>

Path Parameters

station*string

The station's id, or its code when by=code.

Query Parameters

by?string

Which key the path holds: id, the default, or code.

Default"id"

Value in

  • "id"
  • "code"

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

The fields to change. A field that the patch leaves out keeps its value. max_width_mm and max_height_mm go together: a patch carries both of them or neither.

Response Headers

200, 400, 401, 403, 404, 413, 429, default

200, 400, 401, 403, 404, 413, 429, default

200, 400, 403, 404, 429, default

200, 400, 403, 404, 429, default

429

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X PATCH "https://example.com/stations/string" \  -H "Authorization: Bearer ff_shop_…" \  -H "Content-Type: application/json" \  -d '{}'
{  "result": {    "title": "string",    "code": "string",    "max_width_mm": 0,    "max_height_mm": 0,    "work_price_ncu_hour": 0,    "setup_price_ncu_hour": 0,    "id": "string"  }}