Stations

Create a station

POST/stations

Creates a station and returns it with its id. The code must be unique in the shop: a code that another station has answers 409 already-exists.

Request Headers

Bearer <token>

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

A station to create.

Response Headers

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

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

201, 400, 403, 404, 429, default

201, 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 POST "https://example.com/stations" \  -H "Authorization: Bearer ff_shop_…" \  -H "Content-Type: application/json" \  -d '{    "title": "string",    "code": "string",    "max_width_mm": 0,    "max_height_mm": 0,    "work_price_ncu_hour": 0,    "setup_price_ncu_hour": 0  }'
{  "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"  }}