SmartGare
API referenceEndpoints

Revise a draft tariff release

Replaces the draft's name, rounding, kinds of traveller and rows. **Required permission:** `ticketing.tariff:write`

PUT/ticketing/v1/tariff-releases/{id}

Replaces the draft's name, rounding, kinds of traveller and rows.

Required permission: ticketing.tariff:write

AuthorizationBearer <token>

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

body*ReviseTariffReleaseRequest

Response Body

*/*

*/*

curl -X PUT "https://example.com/ticketing/v1/tariff-releases/string" \  -H "Content-Type: application/json" \  -d '{    "categories": [      {        "code": "string",        "label": "string",        "needs_accompanying_adult": true,        "proof_required": true      }    ],    "label": "string",    "rounding_direction": "UP",    "rounding_step": 0,    "rows": []  }'
{  "category_count": 0,  "id": "string",  "revised_at": "2019-08-24T14:15:22Z",  "row_ids": [    "string"  ]}