SmartGare
API referenceEndpoints

Reschedule a ticketing-model migration

Moves the waiting migration to another station day ahead, with why; the new day is approved again. **Required permission:** `referential.carrier:write`

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

Moves the waiting migration to another station day ahead, with why; the new day is approved again.

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*RescheduleTicketingModelMigrationRequest

Response Body

*/*

*/*

*/*

*/*

curl -X PATCH "https://example.com/referential/v1/carriers/string/ticketing-model-migrations/{migrationId}" \  -H "Content-Type: application/json" \  -d '{    "effective_from": "2019-08-24",    "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"}