SmartGare
API referenceEndpoints

Cancel a ticketing-model migration

Withdraws the waiting migration, with why; the carrier keeps its model. **Required permission:** `referential.carrier:write`

POST/referential/v1/carriers/{id}/ticketing-model-migrations/{migrationId}/cancellation

Withdraws the waiting migration, with why; the carrier keeps its model.

Required permission: referential.carrier:write

AuthorizationBearer <token>

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

body*CancelTicketingModelMigrationRequest

Response Body

*/*

*/*

*/*

*/*

curl -X POST "https://example.com/referential/v1/carriers/string/ticketing-model-migrations/{migrationId}/cancellation" \  -H "Content-Type: application/json" \  -d '{    "reason": "string"  }'
{  "approved_at": "2019-08-24T14:15:22Z",  "approved_by": "string",  "carrier_id": "string",  "change_reason": "string",  "changed_at": "2019-08-24T14:15:22Z",  "changed_by": "string",  "effective_from": "2019-08-24",  "from_ticketing_model": "string",  "held_reason": "string",  "id": "string",  "reason": "string",  "scheduled_at": "2019-08-24T14:15:22Z",  "scheduled_by": "string",  "status": "string",  "target_ticketing_model": "string",  "took_effect_at": "2019-08-24T14:15:22Z"}